diff options
author | CJentzsch <jentzsch.software@gmail.com> | 2015-01-09 17:58:32 +0800 |
---|---|---|
committer | CJentzsch <jentzsch.software@gmail.com> | 2015-01-09 17:58:32 +0800 |
commit | 203005e2b77e0fbaa2cb8003fc85a784628c1866 (patch) | |
tree | c09cc8bf29b6d94b443436d8f6bd139da7d9266b /TestHelper.cpp | |
parent | 90cdc52ae788d24e79800bf44473f3c8c087c1f4 (diff) | |
download | dexon-solidity-203005e2b77e0fbaa2cb8003fc85a784628c1866.tar.gz dexon-solidity-203005e2b77e0fbaa2cb8003fc85a784628c1866.tar.zst dexon-solidity-203005e2b77e0fbaa2cb8003fc85a784628c1866.zip |
add blockhash test fo vm tests
Diffstat (limited to 'TestHelper.cpp')
-rw-r--r-- | TestHelper.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/TestHelper.cpp b/TestHelper.cpp index ea848c7c..ff330d60 100644 --- a/TestHelper.cpp +++ b/TestHelper.cpp @@ -489,4 +489,12 @@ void processCommandLineOptions() } } +LastHashes lastHashes(u256 _currentBlockNumber) +{ + LastHashes ret; + for (u256 i = 1; i <= 256 && i <= _currentBlockNumber; ++i) + ret.push_back(sha3(toString(_currentBlockNumber - i))); + return ret; +} + } } // namespaces |