mirror of
https://github.com/waku-org/nwaku.git
synced 2025-02-14 16:07:27 +00:00
deploy: 6b86c4a22a15268cf076ebeec71e69ee2ddc0833
This commit is contained in:
parent
480868b793
commit
bc287eb9c0
@ -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,
|
||||
|
@ -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()
|
||||
|
||||
## Update switch peer info with announced addrs
|
||||
node.updateSwitchPeerInfo()
|
||||
|
||||
await node.switch.start()
|
||||
node.started = true
|
||||
|
||||
info "Node started successfully"
|
||||
|
Loading…
x
Reference in New Issue
Block a user