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 /TestHelper.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 '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 |