Skip to content

Commit f0d4c32

Browse files
authored
blockhash: charge warm costs in witness (#529)
* blockhash: charge witness warm costs Signed-off-by: Ignacio Hagopian <[email protected]> * ci: test alpha release Signed-off-by: Ignacio Hagopian <[email protected]> --------- Signed-off-by: Ignacio Hagopian <[email protected]>
1 parent 4e66b2f commit f0d4c32

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/stable-spec-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
workflow_dispatch:
99

1010
env:
11-
FIXTURES_TAG: "[email protected].8"
11+
FIXTURES_TAG: "[email protected].9-alpha-1"
1212

1313
jobs:
1414
setup:

core/vm/instructions.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ func getBlockHashFromContract(number uint64, statedb StateDB, witness *state.Acc
462462
ringIndex := number % params.Eip2935BlockHashHistorySize
463463
var pnum common.Hash
464464
binary.BigEndian.PutUint64(pnum[24:], ringIndex)
465-
statelessGas := witness.TouchSlotAndChargeGas(params.HistoryStorageAddress[:], pnum, false, availableGas, false)
465+
statelessGas := witness.TouchSlotAndChargeGas(params.HistoryStorageAddress[:], pnum, false, availableGas, true)
466466
return statedb.GetState(params.HistoryStorageAddress, pnum), statelessGas
467467
}
468468

0 commit comments

Comments
 (0)