From 624c745852c5f3bbb9b577dcca119f61d1c604ae Mon Sep 17 00:00:00 2001 From: Marco Munizaga Date: Thu, 9 Feb 2023 13:44:55 -0800 Subject: [PATCH] Start host in mocknet --- 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 21d214eccb..c31bb38713 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