From 5a81b3eaa16ad35adfc926cd7330b761d229df8d Mon Sep 17 00:00:00 2001 From: Ignacio Hagopian Date: Mon, 9 Dec 2024 14:20:39 -0300 Subject: [PATCH] blockhash: charge witness warm costs Signed-off-by: Ignacio Hagopian --- core/vm/instructions.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/vm/instructions.go b/core/vm/instructions.go index 4a9595283940..20a05c6cbe0c 100644 --- a/core/vm/instructions.go +++ b/core/vm/instructions.go @@ -462,7 +462,7 @@ func getBlockHashFromContract(number uint64, statedb StateDB, witness *state.Acc ringIndex := number % params.Eip2935BlockHashHistorySize var pnum common.Hash binary.BigEndian.PutUint64(pnum[24:], ringIndex) - statelessGas := witness.TouchSlotAndChargeGas(params.HistoryStorageAddress[:], pnum, false, availableGas, false) + statelessGas := witness.TouchSlotAndChargeGas(params.HistoryStorageAddress[:], pnum, false, availableGas, true) return statedb.GetState(params.HistoryStorageAddress, pnum), statelessGas }