From 5811309d22ec9dcf75839a7e3c978a569efce32c Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 9 Feb 2023 15:55:27 -0800 Subject: [PATCH] Start host in mocknet (#2078) --- p2p/net/mock/mock_net.go | 1 + 1 file changed, 1 insertion(+) diff --git a/p2p/net/mock/mock_net.go b/p2p/net/mock/mock_net.go index 21d214ecc..c31bb3871 100644 --- a/p2p/net/mock/mock_net.go +++ b/p2p/net/mock/mock_net.go @@ -122,6 +122,7 @@ func (mn *mocknet) AddPeerWithPeerstore(p peer.ID, ps peerstore.Peerstore) (host if err != nil { return nil, err } + h.Start() mn.Lock() mn.nets[n.peer] = n