fix(discv5): info print ENR containing discv5 udp port (#913)

This commit is contained in:
Daniel Kaiser 2022-03-28 10:29:19 +02:00 committed by GitHub
parent 878804e165
commit be8860c2fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -893,6 +893,7 @@ proc startDiscv5*(node: WakuNode): Future[bool] {.async.} =
asyncSpawn node.runDiscv5Loop()
debug "Successfully started discovery v5 service"
info "Discv5: discoverable ENR ", enr = node.wakuDiscV5.protocol.localNode.record.toURI()
return true
return false
@ -928,7 +929,7 @@ proc start*(node: WakuNode) {.async.} =
## XXX: this should be /ip4..., / stripped?
info "Listening on", full = listenStr
info "Discoverable ENR ", enr = node.enr.toURI()
info "DNS: discoverable ENR ", enr = node.enr.toURI()
## Update switch peer info with announced addrs
node.updateSwitchPeerInfo()