From cf9a022c5f52fe68bbfa876aa9fbd1ed8410fe82 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 28 Feb 2026 00:28:16 +0100 Subject: [PATCH] eth/protocols/eth: simplify testGetBlockReceipts again --- eth/protocols/eth/handler_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/eth/protocols/eth/handler_test.go b/eth/protocols/eth/handler_test.go index a1dcfc8147..2e0ce0408b 100644 --- a/eth/protocols/eth/handler_test.go +++ b/eth/protocols/eth/handler_test.go @@ -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