diff options
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) |