From 89295108f195961fb5b35d65c2ba36cd0dcc6330 Mon Sep 17 00:00:00 2001 From: dean65 Date: Thu, 28 Apr 2022 17:01:05 +0800 Subject: [PATCH] fix tests --- eth/handler.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth/handler.go b/eth/handler.go index 8844944b11..82f7cd611e 100644 --- a/eth/handler.go +++ b/eth/handler.go @@ -148,6 +148,9 @@ func newHandler(config *handlerConfig) (*handler, error) { if config.EventMux == nil { config.EventMux = new(event.TypeMux) // Nicety initialization for tests } + if config.PeerSet == nil { + config.PeerSet = newPeerSet() // Nicety initialization for tests + } h := &handler{ networkID: config.Network, forkFilter: forkid.NewFilter(config.Chain),