From 344a309253e8f3a502f48f2404062950c74a1ac8 Mon Sep 17 00:00:00 2001 From: Alok Date: Thu, 4 Jul 2024 12:03:49 +0530 Subject: [PATCH] fix: node init --- p2p/pkg/node/node.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/pkg/node/node.go b/p2p/pkg/node/node.go index 8d1d83fc8..3676a4dc1 100644 --- a/p2p/pkg/node/node.go +++ b/p2p/pkg/node/node.go @@ -400,6 +400,7 @@ func NewNode(opts *Options) (*Node, error) { store, opts.Logger.With("component", "keyexchange_protocol"), signer.New(), + nil, ) p2pSvc.AddStreamHandlers(keyexchange.Streams()...) srv.RegisterMetricsCollectors(preconfProto.Metrics()...) @@ -457,6 +458,7 @@ func NewNode(opts *Options) (*Node, error) { store, opts.Logger.With("component", "keyexchange_protocol"), signer.New(), + opts.ProviderWhitelist, ) topo.SubscribePeer(func(p p2p.Peer) { if p.Type == p2p.PeerTypeProvider {