mirror of https://github.com/status-im/go-waku.git
fix: addPeers
This commit is contained in:
parent
5d514ddd6a
commit
9207dbcb4a
10
waku/node.go
10
waku/node.go
|
@ -295,11 +295,6 @@ func Execute(options Options) {
|
||||||
|
|
||||||
failOnErr(err, "Wakunode")
|
failOnErr(err, "Wakunode")
|
||||||
|
|
||||||
addPeers(wakuNode, options.Store.Nodes, store.StoreID_v20beta4)
|
|
||||||
addPeers(wakuNode, options.LightPush.Nodes, lightpush.LightPushID_v20beta1)
|
|
||||||
addPeers(wakuNode, options.Rendezvous.Nodes, rendezvous.RendezvousID)
|
|
||||||
addPeers(wakuNode, options.Filter.Nodes, filter.FilterSubscribeID_v20beta1)
|
|
||||||
|
|
||||||
if options.Filter.UseV1 {
|
if options.Filter.UseV1 {
|
||||||
addPeers(wakuNode, options.Filter.NodesV1, legacy_filter.FilterID_v20beta1)
|
addPeers(wakuNode, options.Filter.NodesV1, legacy_filter.FilterID_v20beta1)
|
||||||
}
|
}
|
||||||
|
@ -308,6 +303,11 @@ func Execute(options Options) {
|
||||||
logger.Fatal("starting waku node", zap.Error(err))
|
logger.Fatal("starting waku node", zap.Error(err))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
addPeers(wakuNode, options.Store.Nodes, store.StoreID_v20beta4)
|
||||||
|
addPeers(wakuNode, options.LightPush.Nodes, lightpush.LightPushID_v20beta1)
|
||||||
|
addPeers(wakuNode, options.Rendezvous.Nodes, rendezvous.RendezvousID)
|
||||||
|
addPeers(wakuNode, options.Filter.Nodes, filter.FilterSubscribeID_v20beta1)
|
||||||
|
|
||||||
if options.DiscV5.Enable {
|
if options.DiscV5.Enable {
|
||||||
if err = wakuNode.DiscV5().Start(ctx); err != nil {
|
if err = wakuNode.DiscV5().Start(ctx); err != nil {
|
||||||
logger.Fatal("starting discovery v5", zap.Error(err))
|
logger.Fatal("starting discovery v5", zap.Error(err))
|
||||||
|
|
Loading…
Reference in New Issue