aboutsummaryrefslogtreecommitdiffstats
path: root/state.cpp
diff options
context:
space:
mode:
authorsubtly <subtly@users.noreply.github.com>2015-01-11 02:46:05 +0800
committersubtly <subtly@users.noreply.github.com>2015-01-11 02:46:05 +0800
commitfeb4288b27195fa84098122d7af864ee5ffd9dbf (patch)
tree0a846b3bf5b49fde0eecee369b8c22452ac941dc /state.cpp
parenta1c972075eeca086dd7f95b9dfe72737d00457b0 (diff)
parent8bc90cb7f82aebfdfc0c9367a838f3a936d5ff1a (diff)
downloaddexon-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.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/state.cpp b/state.cpp
index 13346822..6da18e70 100644
--- a/state.cpp
+++ b/state.cpp
@@ -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)