eth/protocols/eth/peer_pow.go — Version Comparison
|
v1.17.3 |
v1.17.4 |
| Branch |
etc/v1.17.3-full-node |
etc/v1.17.4-full-node |
| Delta |
+176 -0 |
+185 -0 |
Diff between branches
diff --git a/eth/protocols/eth/peer_pow.go b/eth/protocols/eth/peer_pow.go
index cea0523d9..3b92bc302 100644
--- a/eth/protocols/eth/peer_pow.go
+++ b/eth/protocols/eth/peer_pow.go
@@ -23,6 +23,7 @@ import (
"github.com/ethereum/go-ethereum/common"
"github.com/ethereum/go-ethereum/core/types"
"github.com/ethereum/go-ethereum/p2p"
+ "github.com/ethereum/go-ethereum/rlp"
)
const (
@@ -174,3 +175,11 @@ func (p *Peer) broadcastBlocksPoW() {
}
}
}
+
+// ReplyReceiptsRLP is the response to GetReceipts.
+func (p *Peer) ReplyReceiptsRLP(id uint64, receipts []rlp.RawValue) error {
+ return p2p.Send(p.rw, ReceiptsMsg, &ReceiptsRLPPacket{
+ RequestId: id,
+ ReceiptsRLPResponse: receipts,
+ })
+}
← Back to Version Comparison