core: delete access list when rewinding block chain

setHeadBeyondRoot already removes bodies and receipts from the KV
store during rewind; also delete the block access list to avoid stale
data after a chain reorg.
This commit is contained in:
Weixie Cui 2026-07-03 20:00:00 +08:00
parent 7aa7806c09
commit c7d025aa36

View file

@ -1093,6 +1093,7 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha
// removed by the hc.SetHead function.
rawdb.DeleteBody(db, hash, num)
rawdb.DeleteReceipts(db, hash, num)
rawdb.DeleteAccessList(db, hash, num)
}
// Todo(rjl493456442) txlookup, log index, etc
}