aboutsummaryrefslogtreecommitdiffstats
path: root/genesis.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-12-12 04:46:06 +0800
committerGav Wood <i@gavwood.com>2014-12-12 04:46:06 +0800
commit6e390ba059115d919db631c73cec403cd796b3cc (patch)
treec4a0a1e63c5244a5892e6a1b507a4bcdd242d6cd /genesis.cpp
parent1d879a9bb451943add6bb2bd68cad3c79e6aa50e (diff)
downloaddexon-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.cpp2
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()