eth/protocols/eth: address comments

pull/29158/head
Marius van der Wijden 3 months ago
parent d8e6fad081
commit 006b326907
  1. 7
      eth/protocols/eth/handlers.go

@ -305,8 +305,11 @@ func serviceGetReceiptsQuery69(chain *core.BlockChain, query GetReceiptsRequest)
continue
}
} else {
block := chain.GetBlockByHash(hash)
results = transformReceipts(results, block.Transactions())
header := chain.GetHeaderByHash(hash)
if header.ReceiptHash != types.EmptyReceiptsHash {
body := chain.GetBody(hash)
results = transformReceipts(results, body.Transactions)
}
}
receipts = append(receipts, results)
bytes += len(results)

Loading…
Cancel
Save