From c7d025aa36cb3bceb2600a351df06d2ce8ddde9b Mon Sep 17 00:00:00 2001 From: Weixie Cui Date: Fri, 3 Jul 2026 20:00:00 +0800 Subject: [PATCH] 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. --- core/blockchain.go | 1 + 1 file changed, 1 insertion(+) diff --git a/core/blockchain.go b/core/blockchain.go index d6edd90133..574eaf8199 100644 --- a/core/blockchain.go +++ b/core/blockchain.go @@ -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 }