fix: linter issues

This commit is contained in:
jeevan-sid 2025-12-25 09:41:59 +05:30
parent 5d8f73e733
commit 3c5a4c55e7

View file

@ -1077,11 +1077,9 @@ func (bc *BlockChain) setHeadBeyondRoot(head uint64, time uint64, root common.Ha
// removed by the hc.SetHead function.
if body := rawdb.ReadBody(bc.db, hash, num); body != nil {
for _, tx := range body.Transactions {
rawdb.DeleteTxLookupEntry(db, tx.Hash())
}
}
rawdb.DeleteBody(db, hash, num)
rawdb.DeleteReceipts(db, hash, num)
}