Skip to content

eth/protocols/eth/peer.go

Type MOD
Upstream Lines 615
Changed +2 -0

Add PoW extension initialization hook

diff --git a/eth/protocols/eth/peer.go b/eth/protocols/eth/peer.go
index 754fd02be..54d712d54 100644
--- a/eth/protocols/eth/peer.go
+++ b/eth/protocols/eth/peer.go
@@ -82,6 +82,8 @@ type Peer struct {
    receiptBufferLock sync.Mutex                 // Lock for protecting the receiptBuffer

    term chan struct{} // Termination channel to stop the broadcasters
+
+   powExt *PoWPeerExtension // PoW-specific peer state (nil for PoS peers)
 }

 // NewPeer creates a wrapper for a network connection and negotiated  protocol

← Back to eth Protocol