Start host in mocknet (#2078)

This commit is contained in:
Marco Munizaga 2023-02-09 15:55:27 -08:00 committed by GitHub
parent f0af39e7b7
commit 5811309d22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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