diff --git a/p2p/switch.go b/p2p/switch.go index 49687511a..107c1d9d8 100644 --- a/p2p/switch.go +++ b/p2p/switch.go @@ -176,10 +176,7 @@ func (sw *Switch) OnStart() error { return err } } - // Start peers - for _, peer := range sw.peers.List() { - sw.startInitPeer(peer) - } + // Start listeners for _, listener := range sw.listeners { go sw.listenerRoutine(listener)