From 7609febf20ec5230b8d08196e900b261baa94644 Mon Sep 17 00:00:00 2001 From: healthykim Date: Tue, 24 Feb 2026 18:21:24 +0900 Subject: [PATCH] delete buffer when validation failed --- eth/protocols/eth/peer.go | 1 + 1 file changed, 1 insertion(+) diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go index 67c6619be9..7e1ab17ba2 100644 --- a/eth/protocols/eth/peer.go +++ b/eth/protocols/eth/peer.go @@ -458,6 +458,7 @@ func (p *Peer) bufferReceipts(requestId uint64, receiptLists []*ReceiptList69, l gasUsed := buffer.gasUsed[lastBlock] logSize, err := p.validateLastBlockReceipt(receiptLists, requestId, gasUsed) if err != nil { + delete(p.receiptBuffer, requestId) return err } // Update the buffered data and trim the packet to exclude the incomplete block.