From 203005e2b77e0fbaa2cb8003fc85a784628c1866 Mon Sep 17 00:00:00 2001 From: CJentzsch Date: Fri, 9 Jan 2015 10:58:32 +0100 Subject: add blockhash test fo vm tests --- TestHelper.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'TestHelper.cpp') 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 -- cgit v1.2.3