Skip to content

TestGetBlockHeaders68 / TestGetBlockBodies68 / TestGetBlockReceipts68

Source (upstream pre-purge) Current
File eth/protocols/eth/handler_test.go handler_pow_test.go
Symbol TestGetBlockReceipts68 TestGetBlockReceipts68
Ref 723aae2b4~1 etc/v1.17.4-full-node

The ETH68 instantiations #33511 re-pointed at ETH69. Headers and bodies are the upstream one-liners verbatim, calling the protocol-parameterized bodies that still live in the upstream handler_test.go — the wire format for both is unchanged across 68/69, so no copy is needed. Receipts is different: upstream's testGetBlockReceipts body was hardcoded to the eth/68 types (it was only ever called with ETH68), and #33511 rewrote it in place for eth/69 rather than parameterizing it. So the pre-drop body is revived verbatim as testGetBlockReceipts68, with ReceiptsPacket[*ReceiptList68] monomorphized to ReceiptsPacket68 and the function renamed to avoid colliding with the eth/69 successor. This is the only end-to-end coverage of the serving chain plumbing — handleGetReceipts68 -> ServiceGetReceiptsQuery68 -> GetReceiptsRLP + GetBodyRLP + blockReceiptsToNetwork68 — against an independently built expected response, which the encoding-level tests cannot reach.

3-way merge — purge → getc ← upstream

pre-purgefork-only
// Tests that the transaction receipts can be retrieved based on hashes.
func TestGetBlockReceipts68(t *testing.T) { testGetBlockReceipts68(t, ETH68) }

← eth Protocol