Merge branch 'jangko-fix64' into devel
This commit is contained in:
commit
d4b917d906
|
@ -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…
Reference in New Issue