Fix address deserialization.
This commit is contained in:
parent
8ec1c610e2
commit
c28ececcb3
|
@ -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:
|
||||
let
|
||||
address = node.network.switch.peerStore[LastSeenBook][id].valueOr:
|
||||
return ""
|
||||
$normalize(address, id)
|
||||
normalized = address.normalize(id).valueOr:
|
||||
return ""
|
||||
$normalized
|
||||
|
||||
proc getDiscoveryAddresses(node: BeaconNode): seq[string] =
|
||||
let
|
||||
|
|
Loading…
Reference in New Issue