mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-15 17:30:44 +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++ {
|
for i := uint64(0); i <= backend.chain.CurrentBlock().Number.Uint64(); i++ {
|
||||||
block := backend.chain.GetBlockByNumber(i)
|
block := backend.chain.GetBlockByNumber(i)
|
||||||
hashes = append(hashes, block.Hash())
|
hashes = append(hashes, block.Hash())
|
||||||
receiptsRLP := backend.chain.GetReceiptsRLP(block.Hash())
|
br := backend.chain.GetReceiptsByHash(block.Hash())
|
||||||
bodyRLP := backend.chain.GetBodyRLP(block.Hash())
|
receipts.Append(NewReceiptList(br))
|
||||||
tr, _ := blockReceiptsToNetwork(receiptsRLP, bodyRLP)
|
|
||||||
receipts.AppendRaw(tr)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send the hash request and verify the response
|
// Send the hash request and verify the response
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue