Skip to content

handleGetReceipts68

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

Byte-for-byte revival, upstream name kept verbatim (it does not collide: v1.17.4 has handleGetReceipts69 / handleGetReceipts70, and the 68 suffix matches that convention). ETH68 must serve receipts in the classic WITH-bloom encoding; the eth/69 handler replies with the EIP-7642 bloom-less ReceiptList form that ETH68 / core-geth peers cannot parse. Supersedes the earlier purge1 revival, which was named handleGetReceiptsPoW.

3-way merge — purge → getc ← upstream

pre-purge
func handleGetReceipts68(backend Backend, msg Decoder, peer *Peer) error {
// Decode the block receipts retrieval message
var query GetReceiptsPacket
if err := msg.Decode(&query); err != nil {
return err
}
response := ServiceGetReceiptsQuery68(backend.Chain(), query.GetReceiptsRequest)
return peer.ReplyReceiptsRLP(query.RequestId, response)
}
core-geth validation — +3 -3 | | | |---|---| | File | [`handlers.go`](https://github.com/etclabscore/core-geth/blob/v1.12.20/eth/protocols/eth/handlers.go) | | Symbol | `handleGetReceipts` | | Ref | `v1.12.20` |
--- a/core-geth/eth/protocols/eth/handlers.go
+++ b/etc/eth/protocols/eth/handlers_pow.go
@@ -1,9 +1,9 @@
-func handleGetReceipts(backend Backend, msg Decoder, peer *Peer) error {
+func handleGetReceipts68(backend Backend, msg Decoder, peer *Peer) error {
    // Decode the block receipts retrieval message
    var query GetReceiptsPacket
    if err := msg.Decode(&query); err != nil {
-       return fmt.Errorf("%w: message %v: %v", errDecode, msg, err)
+       return err
    }
-   response := ServiceGetReceiptsQuery(backend.Chain(), query.GetReceiptsRequest)
+   response := ServiceGetReceiptsQuery68(backend.Chain(), query.GetReceiptsRequest)
    return peer.ReplyReceiptsRLP(query.RequestId, response)
 }

← eth Protocol