diff options
author | Gav Wood <i@gavwood.com> | 2014-12-12 04:46:06 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-12-12 04:46:06 +0800 |
commit | 6e390ba059115d919db631c73cec403cd796b3cc (patch) | |
tree | c4a0a1e63c5244a5892e6a1b507a4bcdd242d6cd /genesis.cpp | |
parent | 1d879a9bb451943add6bb2bd68cad3c79e6aa50e (diff) | |
download | dexon-solidity-6e390ba059115d919db631c73cec403cd796b3cc.tar.gz dexon-solidity-6e390ba059115d919db631c73cec403cd796b3cc.tar.zst dexon-solidity-6e390ba059115d919db631c73cec403cd796b3cc.zip |
Fix genesis test.
Refactor/cleaning.
Diffstat (limited to 'genesis.cpp')
-rw-r--r-- | genesis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/genesis.cpp b/genesis.cpp index 6839d42e..2cd9221a 100644 --- a/genesis.cpp +++ b/genesis.cpp @@ -51,7 +51,7 @@ BOOST_AUTO_TEST_CASE(genesis_tests) BOOST_CHECK_EQUAL(BlockChain::genesis().stateRoot, h256(o["genesis_state_root"].get_str())); BOOST_CHECK_EQUAL(toHex(BlockChain::createGenesisBlock()), toHex(fromHex(o["genesis_rlp_hex"].get_str()))); - BOOST_CHECK_EQUAL(sha3(BlockChain::createGenesisBlock()), h256(o["genesis_hash"].get_str())); + BOOST_CHECK_EQUAL(BlockInfo::headerHash(BlockChain::createGenesisBlock()), h256(o["genesis_hash"].get_str())); } BOOST_AUTO_TEST_SUITE_END() |