Fix address deserialization.

This commit is contained in:
cheatfate 2024-11-26 14:04:59 +02:00
parent 8ec1c610e2
commit c28ececcb3
No known key found for this signature in database
GPG Key ID: 46ADD633A7201F95
1 changed files with 6 additions and 3 deletions

View File

@ -122,9 +122,12 @@ proc getProtocolArgument(ma: MultiAddress,
err("Multiaddress codec has not been found")
proc getLastSeenAddress(node: BeaconNode, id: PeerId): string =
let address = node.network.switch.peerStore[LastSeenBook][id].valueOr:
return ""
$normalize(address, id)
let
address = node.network.switch.peerStore[LastSeenBook][id].valueOr:
return ""
normalized = address.normalize(id).valueOr:
return ""
$normalized
proc getDiscoveryAddresses(node: BeaconNode): seq[string] =
let