mirror of https://github.com/waku-org/nwaku.git
chore: always include node ENR in response to info requests (#1128)
This commit is contained in:
parent
d857c4a421
commit
f4e9d39524
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue