mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-13 22:04:52 +00:00
fixes #64 test_vm_json now support all forks
This commit is contained in:
parent
a0d1c2718a
commit
b1febeabb7
@ -81,10 +81,7 @@ proc testFixture(fixtures: JsonNode, testStatusIMPL: var TestStatus) =
|
|||||||
let expectedGasRemaining = fixture{"gas"}.getHexadecimalInt
|
let expectedGasRemaining = fixture{"gas"}.getHexadecimalInt
|
||||||
let actualGasRemaining = gasMeter.gasRemaining
|
let actualGasRemaining = gasMeter.gasRemaining
|
||||||
checkpoint(&"Remaining: {actualGasRemaining} - Expected: {expectedGasRemaining}")
|
checkpoint(&"Remaining: {actualGasRemaining} - Expected: {expectedGasRemaining}")
|
||||||
check(actualGasRemaining == expectedGasRemaining or
|
check(actualGasRemaining == expectedGasRemaining)
|
||||||
computation.code.hasSStore() and
|
|
||||||
(actualGasRemaining > expectedGasRemaining and (actualGasRemaining - expectedGasRemaining) mod 15_000 == 0 or
|
|
||||||
expectedGasRemaining > actualGasRemaining and (expectedGasRemaining - actualGasRemaining) mod 15_000 == 0))
|
|
||||||
|
|
||||||
if not fixture{"post"}.isNil:
|
if not fixture{"post"}.isNil:
|
||||||
verifyStateDb(fixture{"post"}, computation.vmState.readOnlyStateDB)
|
verifyStateDb(fixture{"post"}, computation.vmState.readOnlyStateDB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user