Skip to content

eth/handler_pow.go — Version Comparison

v1.16.8 v1.17.3
Branch etc/v1.16.8-full-node etc/v1.17.3-full-node
Delta +120 -0 +125 -0

Diff between branches

diff --git a/eth/handler_pow.go b/eth/handler_pow.go
index 9350413b7..ddd83379d 100644
--- a/eth/handler_pow.go
+++ b/eth/handler_pow.go
@@ -25,9 +25,14 @@ import (
    "github.com/ethereum/go-ethereum/core/types"
    "github.com/ethereum/go-ethereum/eth/fetcher"
    "github.com/ethereum/go-ethereum/eth/protocols/eth"
+   "github.com/ethereum/go-ethereum/event"
    "github.com/ethereum/go-ethereum/log"
 )

+// EventMux returns the handler's private TypeMux used by the PoW miner to
+// broadcast NewMinedBlockEvent. Returns nil on PoS chains.
+func (h *handler) EventMux() *event.TypeMux { return h.eventMux }
+
 // handleBlockAnnounces is invoked from a peer's message handler when it transmits a
 // batch of block announcements for the local node to process.
 func (h *ethHandler) handleBlockAnnounces(peer *eth.Peer, hashes []common.Hash, numbers []uint64) error {
← Back to Version Comparison