chore: always include node ENR in response to info requests (#1128)

This commit is contained in:
Hanno Cornelius 2022-09-08 14:25:02 +01:00 committed by GitHub
parent d857c4a421
commit f4e9d39524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -415,8 +415,7 @@ proc info*(node: WakuNode): WakuInfo =
for address in node.announcedAddresses:
var fulladdr = $address & "/p2p/" & $peerInfo.peerId
listenStr &= fulladdr
let enrUri = if node.wakuDiscV5 != nil: node.wakuDiscV5.protocol.localNode.record.toUri()
else: node.enr.toUri()
let enrUri = node.enr.toUri()
let wakuInfo = WakuInfo(listenAddresses: listenStr, enrUri: enrUri)
return wakuInfo