aboutsummaryrefslogtreecommitdiffstats
path: root/dagger.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-04-14 00:12:05 +0800
committerGav Wood <i@gavwood.com>2015-04-14 18:56:58 +0800
commitefdd3790a0405654933f456751230254cef95151 (patch)
tree49858d780698755113eae1aa88dca3e423ceed90 /dagger.cpp
parentd0efe9333fc88bae5ab82ef0435d99d9be4e21d4 (diff)
downloaddexon-solidity-efdd3790a0405654933f456751230254cef95151.tar
dexon-solidity-efdd3790a0405654933f456751230254cef95151.tar.gz
dexon-solidity-efdd3790a0405654933f456751230254cef95151.tar.bz2
dexon-solidity-efdd3790a0405654933f456751230254cef95151.tar.lz
dexon-solidity-efdd3790a0405654933f456751230254cef95151.tar.xz
dexon-solidity-efdd3790a0405654933f456751230254cef95151.tar.zst
dexon-solidity-efdd3790a0405654933f456751230254cef95151.zip
Various fixes for mining.
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);
}