diff --git a/network/p2p/p2p.go b/network/p2p/p2p.go index d4694a874f..52f23c0802 100644 --- a/network/p2p/p2p.go +++ b/network/p2p/p2p.go @@ -130,7 +130,7 @@ func MakeService(ctx context.Context, log logging.Logger, cfg config.Local, data streams: sm, pubsub: ps, pubsubCtx: ctx, - privKey: privKey, + privKey: pstore.PrivKey(h.ID()), topics: make(map[string]*pubsub.Topic), }, nil }