mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-15 19:31:37 +00:00
update comments
This commit is contained in:
parent
9359a5f00f
commit
d7a26252b7
2 changed files with 2 additions and 2 deletions
|
|
@ -573,8 +573,6 @@ func handleReceipts70(backend Backend, msg Decoder, peer *Peer) error {
|
||||||
return fmt.Errorf("Receipts: %w", err)
|
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()
|
receiptLists, err := res.List.Items()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("Receipts: %w", err)
|
return fmt.Errorf("Receipts: %w", err)
|
||||||
|
|
|
||||||
|
|
@ -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.
|
// 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) {
|
func (p *Peer) RequestReceipts(hashes []common.Hash, gasUsed []uint64, sink chan *Response) (*Request, error) {
|
||||||
p.Log().Debug("Fetching batch of receipts", "count", len(hashes))
|
p.Log().Debug("Fetching batch of receipts", "count", len(hashes))
|
||||||
id := rand.Uint64()
|
id := rand.Uint64()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue