mirror of https://github.com/waku-org/nwaku.git
A quick fix to the master issue (#579)
* moves resume to after the relay is mounted * Update waku/v2/node/wakunode2.nim Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com> Co-authored-by: Hanno Cornelius <68783915+jm-clius@users.noreply.github.com>
This commit is contained in:
parent
cc5f55dbbb
commit
8f741de483
|
@ -703,8 +703,6 @@ when isMainModule:
|
||||||
if conf.storenode != "":
|
if conf.storenode != "":
|
||||||
setStorePeer(node, conf.storenode)
|
setStorePeer(node, conf.storenode)
|
||||||
|
|
||||||
if conf.persistMessages:
|
|
||||||
waitFor node.resume()
|
|
||||||
|
|
||||||
|
|
||||||
# Relay setup
|
# Relay setup
|
||||||
|
@ -713,6 +711,10 @@ when isMainModule:
|
||||||
rlnRelayEnabled = conf.rlnRelay,
|
rlnRelayEnabled = conf.rlnRelay,
|
||||||
keepAlive = conf.keepAlive,
|
keepAlive = conf.keepAlive,
|
||||||
relayMessages = conf.relay) # Indicates if node is capable to relay messages
|
relayMessages = conf.relay) # Indicates if node is capable to relay messages
|
||||||
|
|
||||||
|
# Resume historical messages, this has to be called after the relay setup
|
||||||
|
if conf.store and conf.persistMessages:
|
||||||
|
waitFor node.resume()
|
||||||
|
|
||||||
if conf.staticnodes.len > 0:
|
if conf.staticnodes.len > 0:
|
||||||
waitFor connectToNodes(node, conf.staticnodes)
|
waitFor connectToNodes(node, conf.staticnodes)
|
||||||
|
@ -761,4 +763,4 @@ when isMainModule:
|
||||||
|
|
||||||
c_signal(SIGTERM, handleSigterm)
|
c_signal(SIGTERM, handleSigterm)
|
||||||
|
|
||||||
runForever()
|
runForever()
|
||||||
|
|
Loading…
Reference in New Issue