From cafdfc6982194443c9fc440b7ae2d6e3f7145b84 Mon Sep 17 00:00:00 2001 From: Gary Rong Date: Tue, 26 Nov 2024 13:50:28 +0800 Subject: [PATCH] core: add comment --- core/state_prefetcher.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/state_prefetcher.go b/core/state_prefetcher.go index 3c549108d6..805df5ef62 100644 --- a/core/state_prefetcher.go +++ b/core/state_prefetcher.go @@ -65,6 +65,9 @@ func (p *statePrefetcher) Prefetch(block *types.Block, statedb *state.StateDB, c return // Also invalid block, bail out } statedb.SetTxContext(tx.Hash(), i) + + // We attempt to apply a transaction. The goal is not to execute + // the transaction successfully, rather to warm up touched data slots. if _, err := ApplyMessage(evm, msg, gaspool); err != nil { return // Ugh, something went horribly wrong, bail out }