aboutsummaryrefslogtreecommitdiffstats
path: root/dagger.cpp
diff options
context:
space:
mode:
authorMarek Kotewicz <marek.kotewicz@gmail.com>2015-04-15 18:57:48 +0800
committerMarek Kotewicz <marek.kotewicz@gmail.com>2015-04-15 18:57:48 +0800
commit6c146899e04041c90bf61aed325780b474f2224d (patch)
treefb217c9117cea5365636b4a0e3846b1bf02071e8 /dagger.cpp
parentc4b4d7cdc1aa35167505559f0f03ff696ab78e02 (diff)
parentc5f08fe6dff58f973da8b888d25afa3ef967936e (diff)
downloaddexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar.gz
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar.bz2
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar.lz
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar.xz
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.tar.zst
dexon-solidity-6c146899e04041c90bf61aed325780b474f2224d.zip
Merge branch 'develop' into cmake3.2.1
Diffstat (limited to 'dagger.cpp')
-rw-r--r--dagger.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/dagger.cpp b/dagger.cpp
index 4abba509..367c422a 100644
--- a/dagger.cpp
+++ b/dagger.cpp
@@ -25,7 +25,7 @@
#include "JsonSpiritHeaders.h"
#include <libdevcore/CommonIO.h>
#include <libethcore/ProofOfWork.h>
-#include <libethcore/Ethasher.h>
+#include <libethcore/EthashAux.h>
#include <boost/test/unit_test.hpp>
#include "TestHelper.h"
@@ -63,18 +63,18 @@ BOOST_AUTO_TEST_CASE(basic_test)
unsigned cacheSize(o["cache_size"].get_int());
h256 cacheHash(o["cache_hash"].get_str());
- BOOST_REQUIRE_EQUAL(Ethasher::get()->params(header).cache_size, cacheSize);
- BOOST_REQUIRE_EQUAL(sha3(bytesConstRef((byte const*)Ethasher::get()->light(header), cacheSize)), cacheHash);
+ BOOST_REQUIRE_EQUAL(EthashAux::get()->params(header).cache_size, cacheSize);
+ BOOST_REQUIRE_EQUAL(sha3(bytesConstRef((byte const*)EthashAux::get()->light(header), cacheSize)), cacheHash);
#if TEST_FULL
unsigned fullSize(o["full_size"].get_int());
h256 fullHash(o["full_hash"].get_str());
- BOOST_REQUIRE_EQUAL(Ethasher::get()->full(header).size(), fullSize);
- BOOST_REQUIRE_EQUAL(sha3(Ethasher::get()->full(header)), fullHash);
+ BOOST_REQUIRE_EQUAL(EthashAux::get()->full(header).size(), fullSize);
+ BOOST_REQUIRE_EQUAL(sha3(EthashAux::get()->full(header)), fullHash);
#endif
h256 result(o["result"].get_str());
- Ethasher::Result r = Ethasher::eval(header);
+ Ethash::Result r = EthashAux::eval(header);
BOOST_REQUIRE_EQUAL(r.value, result);
BOOST_REQUIRE_EQUAL(r.mixHash, header.mixHash);
}