add comment to prefetch bal

This commit is contained in:
Po 2025-06-08 05:32:29 +02:00
parent f52f4cade3
commit c1cc93326e

View file

@ -60,7 +60,7 @@ func (p *ParallelStateProcessor) Process(block *types.Block, statedb *state.Stat
initialdb = statedb.Copy() initialdb = statedb.Copy()
start = time.Now() start = time.Now()
// Must prefetch bal before syscall or merkle root might mismatch // Must prefetch bal before syscall to avoid overring syscall's state, thus merkle root might mismatch
statedb.PrefetchStateBAL(block.NumberU64()) statedb.PrefetchStateBAL(block.NumberU64())
PrefetchBALTime += time.Since(start) PrefetchBALTime += time.Since(start)
} else { } else {