aboutsummaryrefslogtreecommitdiffstats
path: root/dagger.cpp
diff options
context:
space:
mode:
authorCJentzsch <jentzsch.software@gmail.com>2015-04-02 17:06:56 +0800
committerCJentzsch <jentzsch.software@gmail.com>2015-04-02 17:06:56 +0800
commit125ca1d2702da04ff5b6e515d6193a832b80e1f2 (patch)
tree70f95d9fd8ce913550dc6415927551e684a6f868 /dagger.cpp
parent32d5c950401504e3591ad41ee93459730c1a9ad8 (diff)
parent9d734e03fd085a3cbd1a403bd63e51da19e165b5 (diff)
downloaddexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.gz
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.bz2
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.lz
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.xz
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.tar.zst
dexon-solidity-125ca1d2702da04ff5b6e515d6193a832b80e1f2.zip
Merge remote-tracking branch 'upstream/develop' into addTests
Conflicts: test/ttTransactionTestFiller.json
Diffstat (limited to 'dagger.cpp')
-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());