Skip to content

Commit 8929510

Browse files
committed
fix tests
1 parent 7490499 commit 8929510

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

eth/handler.go

+3
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,9 @@ func newHandler(config *handlerConfig) (*handler, error) {
148148
if config.EventMux == nil {
149149
config.EventMux = new(event.TypeMux) // Nicety initialization for tests
150150
}
151+
if config.PeerSet == nil {
152+
config.PeerSet = newPeerSet() // Nicety initialization for tests
153+
}
151154
h := &handler{
152155
networkID: config.Network,
153156
forkFilter: forkid.NewFilter(config.Chain),

0 commit comments

Comments
 (0)