mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-20 13:44:31 +00:00
eth/protocols/eth: simplify testGetBlockReceipts again
This commit is contained in:
parent
c0ebb35b1e
commit
cf9a022c5f
1 changed files with 2 additions and 4 deletions
|
|
@ -591,10 +591,8 @@ func testGetBlockReceipts(t *testing.T, protocol uint) {
|
|||
for i := uint64(0); i <= backend.chain.CurrentBlock().Number.Uint64(); i++ {
|
||||
block := backend.chain.GetBlockByNumber(i)
|
||||
hashes = append(hashes, block.Hash())
|
||||
receiptsRLP := backend.chain.GetReceiptsRLP(block.Hash())
|
||||
bodyRLP := backend.chain.GetBodyRLP(block.Hash())
|
||||
tr, _ := blockReceiptsToNetwork(receiptsRLP, bodyRLP)
|
||||
receipts.AppendRaw(tr)
|
||||
br := backend.chain.GetReceiptsByHash(block.Hash())
|
||||
receipts.Append(NewReceiptList(br))
|
||||
}
|
||||
|
||||
// Send the hash request and verify the response
|
||||
|
|
|
|||
Loading…
Reference in a new issue