From d7a26252b7dc1072e9f3ebf96e213bfde93be41d Mon Sep 17 00:00:00 2001 From: healthykim Date: Thu, 19 Mar 2026 01:50:13 +0900 Subject: [PATCH] update comments --- eth/protocols/eth/handlers.go | 2 -- eth/protocols/eth/peer.go | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eth/protocols/eth/handlers.go b/eth/protocols/eth/handlers.go index 2b60930472..74d96d8da7 100644 --- a/eth/protocols/eth/handlers.go +++ b/eth/protocols/eth/handlers.go @@ -573,8 +573,6 @@ func handleReceipts70(backend Backend, msg Decoder, peer *Peer) error { return fmt.Errorf("Receipts: %w", err) } - // Assign temporary hashing buffer to each list item, the same buffer is shared - // between all receipt list instances. receiptLists, err := res.List.Items() if err != nil { return fmt.Errorf("Receipts: %w", err) diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go index a4a8ccb0d9..412309a1dc 100644 --- a/eth/protocols/eth/peer.go +++ b/eth/protocols/eth/peer.go @@ -355,6 +355,8 @@ func (p *Peer) RequestBodies(hashes []common.Hash, sink chan *Response) (*Reques } // RequestReceipts fetches a batch of transaction receipts from a remote node. +// gasUsed provides the total gas used per block, used to estimate the maximum +// log byte size. func (p *Peer) RequestReceipts(hashes []common.Hash, gasUsed []uint64, sink chan *Response) (*Request, error) { p.Log().Debug("Fetching batch of receipts", "count", len(hashes)) id := rand.Uint64()