mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-07 16:33:08 +00:00
deploy: cbe81b711c7e073ad4613e3a3d797c2a7ad45fb8
This commit is contained in:
parent
a802d3bccb
commit
60ba83d515
@ -1 +1 @@
|
|||||||
1616752324
|
1617111199
|
||||||
@ -581,7 +581,8 @@ when isMainModule:
|
|||||||
|
|
||||||
# TODO Set swap peer, for now should be same as store peer
|
# TODO Set swap peer, for now should be same as store peer
|
||||||
|
|
||||||
if conf.store:
|
# Store setup
|
||||||
|
if (conf.storenode != "") or (conf.store):
|
||||||
var store: WakuMessageStore
|
var store: WakuMessageStore
|
||||||
|
|
||||||
if not sqliteDatabase.isNil:
|
if not sqliteDatabase.isNil:
|
||||||
@ -594,20 +595,22 @@ when isMainModule:
|
|||||||
|
|
||||||
mountStore(node, store)
|
mountStore(node, store)
|
||||||
|
|
||||||
if conf.filter:
|
if conf.storenode != "":
|
||||||
|
setStorePeer(node, conf.storenode)
|
||||||
|
|
||||||
|
# Filter setup
|
||||||
|
if (conf.filternode != "") or (conf.filter):
|
||||||
mountFilter(node)
|
mountFilter(node)
|
||||||
|
|
||||||
if conf.relay:
|
if conf.filternode != "":
|
||||||
|
setFilterPeer(node, conf.filternode)
|
||||||
|
|
||||||
|
# Relay setup
|
||||||
|
if conf.relay: # True by default
|
||||||
mountRelay(node, conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay)
|
mountRelay(node, conf.topics.split(" "), rlnRelayEnabled = conf.rlnrelay)
|
||||||
|
|
||||||
if conf.staticnodes.len > 0:
|
if conf.staticnodes.len > 0:
|
||||||
waitFor connectToNodes(node, conf.staticnodes)
|
waitFor connectToNodes(node, conf.staticnodes)
|
||||||
|
|
||||||
if conf.storenode != "":
|
|
||||||
setStorePeer(node, conf.storenode)
|
|
||||||
|
|
||||||
if conf.filternode != "":
|
|
||||||
setFilterPeer(node, conf.filternode)
|
|
||||||
|
|
||||||
if conf.rpc:
|
if conf.rpc:
|
||||||
startRpc(node, conf.rpcAddress, Port(conf.rpcPort + conf.portsShift), conf)
|
startRpc(node, conf.rpcAddress, Port(conf.rpcPort + conf.portsShift), conf)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user