aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2015-04-01 00:54:50 +0800
committerGav Wood <i@gavwood.com>2015-04-01 00:54:50 +0800
commit8a94b58e4805598ad285866646711506d1681d1a (patch)
tree1eda98f0d251372edb7b5c55dbe3b429357f2f16
parentde4b85273813341dd4392c755fb074124774ffb9 (diff)
downloaddexon-solidity-8a94b58e4805598ad285866646711506d1681d1a.tar.gz
dexon-solidity-8a94b58e4805598ad285866646711506d1681d1a.tar.zst
dexon-solidity-8a94b58e4805598ad285866646711506d1681d1a.zip
Upgrade to latest ethhash API.
-rw-r--r--dagger.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/dagger.cpp b/dagger.cpp
index f7230f70..4dda9c4f 100644
--- a/dagger.cpp
+++ b/dagger.cpp
@@ -63,8 +63,8 @@ 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()->cache(header).size(), cacheSize);
- BOOST_REQUIRE_EQUAL(sha3(Ethasher::get()->cache(header)), cacheHash);
+ BOOST_REQUIRE_EQUAL(Ethasher::get()->params(header).cache_size, cacheSize);
+ BOOST_REQUIRE_EQUAL(sha3(bytesConstRef((byte const*)Ethasher::get()->cache(header), cacheSize)), cacheHash);
#if TEST_FULL
unsigned fullSize(o["full_size"].get_int());