aboutsummaryrefslogtreecommitdiffstats
path: root/dagger.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-04-15 23:24:57 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-04-15 23:24:57 +0800
commit5469743891679267ea1fdad0cd68099101e43b19 (patch)
treeca9c89eac20a14d7a8e88e2500734b7f9e7995e6 /dagger.cpp
parentc5f08fe6dff58f973da8b888d25afa3ef967936e (diff)
downloaddexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar.gz
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar.bz2
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar.lz
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar.xz
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.tar.zst
dexon-solidity-5469743891679267ea1fdad0cd68099101e43b19.zip
Attempt a fix of dagger tests to fix the build
Diffstat (limited to 'dagger.cpp')
-rw-r--r--dagger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/dagger.cpp b/dagger.cpp
index 367c422a..cb8908d3 100644
--- a/dagger.cpp
+++ b/dagger.cpp
@@ -64,7 +64,7 @@ BOOST_AUTO_TEST_CASE(basic_test)
unsigned cacheSize(o["cache_size"].get_int());
h256 cacheHash(o["cache_hash"].get_str());
BOOST_REQUIRE_EQUAL(EthashAux::get()->params(header).cache_size, cacheSize);
- BOOST_REQUIRE_EQUAL(sha3(bytesConstRef((byte const*)EthashAux::get()->light(header), cacheSize)), cacheHash);
+ BOOST_REQUIRE_EQUAL(sha3(EthashAux::get()->light(header)->data()), cacheHash);
#if TEST_FULL
unsigned fullSize(o["full_size"].get_int());