deploy: 6b86c4a22a15268cf076ebeec71e69ee2ddc0833

This commit is contained in:
jm-clius 2022-09-23 14:57:56 +00:00
parent 480868b793
commit bc287eb9c0
2 changed files with 8 additions and 6 deletions

View File

@ -2,7 +2,7 @@
# libtool - Provide generalized library-building support services.
# Generated automatically by config.status (libbacktrace) version-unused
# Libtool was configured on host fv-az453-318:
# Libtool was configured on host fv-az343-142:
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
#
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,

View File

@ -760,7 +760,10 @@ proc start*(node: WakuNode) {.async.} =
##
## Status: Implemented.
# TODO Get this from WakuNode obj
## NB: careful when moving this. We need to start the switch with the bind address
## BEFORE updating with announced addresses for the sake of identify.
await node.switch.start()
let peerInfo = node.switch.peerInfo
info "PeerInfo", peerId = peerInfo.peerId, addrs = peerInfo.addrs
var listenStr = ""
@ -772,14 +775,13 @@ proc start*(node: WakuNode) {.async.} =
info "Listening on", full = listenStr
info "DNS: discoverable ENR ", enr = node.enr.toUri()
## Update switch peer info with announced addrs
node.updateSwitchPeerInfo()
# Perform relay-specific startup tasks TODO: this should be rethought
if not node.wakuRelay.isNil:
await node.startRelay()
await node.switch.start()
## Update switch peer info with announced addrs
node.updateSwitchPeerInfo()
node.started = true
info "Node started successfully"