Skip to content

Commit 8929510

Browse files
committed
fix tests
1 parent 7490499 commit 8929510

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

eth/handler.go

Lines changed: 3 additions & 0 deletions
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)