update comments

This commit is contained in:
healthykim 2026-03-19 01:50:13 +09:00
parent 9359a5f00f
commit d7a26252b7
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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()