eth/protocols/eth: simplify testGetBlockReceipts again

This commit is contained in:
Felix Lange 2026-02-28 00:28:16 +01:00
parent c0ebb35b1e
commit cf9a022c5f

View file

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