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 /vm.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 'vm.cpp')
-rw-r--r-- | vm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -33,7 +33,7 @@ using namespace dev::eth; using namespace dev::test; FakeExtVM::FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth): /// TODO: XXX: remove the default argument & fix. - ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytes(), _previousBlock, _currentBlock, LastHashes(), _depth) {} + ExtVMFace(Address(), Address(), Address(), 0, 1, bytesConstRef(), bytes(), _previousBlock, _currentBlock, test::lastHashes(_currentBlock.number), _depth) {} h160 FakeExtVM::create(u256 _endowment, u256& io_gas, bytesConstRef _init, OnOpFunc const&) { @@ -117,6 +117,7 @@ void FakeExtVM::importEnv(mObject& _o) previousBlock.hash = h256(_o["previousHash"].get_str()); currentBlock.number = toInt(_o["currentNumber"]); + lastHashes = test::lastHashes(currentBlock.number); currentBlock.gasLimit = toInt(_o["currentGasLimit"]); currentBlock.difficulty = toInt(_o["currentDifficulty"]); currentBlock.timestamp = toInt(_o["currentTimestamp"]); |