From 33486385092b8ab85c7b07dd472e1e8b708ab286 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Sat, 28 Feb 2026 00:36:32 +0100 Subject: [PATCH] eth/protocols/eth: unexport encodeForHash --- eth/protocols/eth/receipt.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/eth/protocols/eth/receipt.go b/eth/protocols/eth/receipt.go index a6062ce79d..1f1373a966 100644 --- a/eth/protocols/eth/receipt.go +++ b/eth/protocols/eth/receipt.go @@ -46,8 +46,8 @@ func newReceipt(tr *types.Receipt) Receipt { return r } -// EncodeForHash encodes a receipt for the block receiptsRoot derivation. -func (r *Receipt) EncodeForHash(bloomBuf *[6]byte, out *bytes.Buffer) { +// encodeForHash encodes a receipt for the block receiptsRoot derivation. +func (r *Receipt) encodeForHash(bloomBuf *[6]byte, out *bytes.Buffer) { // For typed receipts, add the tx type. if r.TxType != 0 { out.WriteByte(r.TxType) @@ -157,7 +157,7 @@ func writeReceiptForHash(bloomBuf *[6]byte) func([]byte, *bytes.Buffer) { return func(data []byte, outbuf *bytes.Buffer) { var r Receipt if rlp.DecodeBytes(data, &r) == nil { - r.EncodeForHash(bloomBuf, outbuf) + r.encodeForHash(bloomBuf, outbuf) } } }