|
@ -33,7 +33,7 @@ using namespace dev::eth; |
|
|
using namespace dev::test; |
|
|
using namespace dev::test; |
|
|
|
|
|
|
|
|
FakeExtVM::FakeExtVM(eth::BlockInfo const& _previousBlock, eth::BlockInfo const& _currentBlock, unsigned _depth): /// TODO: XXX: remove the default argument & fix.
|
|
|
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&) |
|
|
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()); |
|
|
previousBlock.hash = h256(_o["previousHash"].get_str()); |
|
|
currentBlock.number = toInt(_o["currentNumber"]); |
|
|
currentBlock.number = toInt(_o["currentNumber"]); |
|
|
|
|
|
lastHashes = test::lastHashes(currentBlock.number); |
|
|
currentBlock.gasLimit = toInt(_o["currentGasLimit"]); |
|
|
currentBlock.gasLimit = toInt(_o["currentGasLimit"]); |
|
|
currentBlock.difficulty = toInt(_o["currentDifficulty"]); |
|
|
currentBlock.difficulty = toInt(_o["currentDifficulty"]); |
|
|
currentBlock.timestamp = toInt(_o["currentTimestamp"]); |
|
|
currentBlock.timestamp = toInt(_o["currentTimestamp"]); |
|
|