diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-04-02 17:06:56 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-04-02 17:06:56 +0800 |
commit | 125ca1d2702da04ff5b6e515d6193a832b80e1f2 (patch) | |
tree | 70f95d9fd8ce913550dc6415927551e684a6f868 /dagger.cpp | |
parent | 32d5c950401504e3591ad41ee93459730c1a9ad8 (diff) | |
parent | 9d734e03fd085a3cbd1a403bd63e51da19e165b5 (diff) | |
download | dexon-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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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()); |