diff options
author | subtly <subtly@users.noreply.github.com> | 2015-01-11 02:46:05 +0800 |
---|---|---|
committer | subtly <subtly@users.noreply.github.com> | 2015-01-11 02:46:05 +0800 |
commit | feb4288b27195fa84098122d7af864ee5ffd9dbf (patch) | |
tree | 0a846b3bf5b49fde0eecee369b8c22452ac941dc /state.cpp | |
parent | a1c972075eeca086dd7f95b9dfe72737d00457b0 (diff) | |
parent | 8bc90cb7f82aebfdfc0c9367a838f3a936d5ff1a (diff) | |
download | dexon-solidity-feb4288b27195fa84098122d7af864ee5ffd9dbf.tar.gz dexon-solidity-feb4288b27195fa84098122d7af864ee5ffd9dbf.tar.zst dexon-solidity-feb4288b27195fa84098122d7af864ee5ffd9dbf.zip |
Merge branch 'develop' into p2p
Diffstat (limited to 'state.cpp')
-rw-r--r-- | state.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -39,8 +39,6 @@ using namespace dev::eth; namespace dev { namespace test { - - void doStateTests(json_spirit::mValue& v, bool _fillin) { processCommandLineOptions(); @@ -62,7 +60,7 @@ void doStateTests(json_spirit::mValue& v, bool _fillin) try { - theState.execute(LastHashes(), tx, &output); + theState.execute(lastHashes(importer.m_environment.currentBlock.number), tx, &output); } catch (Exception const& _e) { @@ -157,6 +155,11 @@ BOOST_AUTO_TEST_CASE(stRefundTest) dev::test::executeTests("stRefundTest", "/StateTests", dev::test::doStateTests); } +BOOST_AUTO_TEST_CASE(stBlockHashTest) +{ + dev::test::executeTests("stBlockHashTest", "/StateTests", dev::test::doStateTests); +} + BOOST_AUTO_TEST_CASE(stCreateTest) { for (int i = 1; i < boost::unit_test::framework::master_test_suite().argc; ++i) |