diff --git a/beacon_chain/rpc/rest_node_api.nim b/beacon_chain/rpc/rest_node_api.nim index df4626559..4f933745d 100644 --- a/beacon_chain/rpc/rest_node_api.nim +++ b/beacon_chain/rpc/rest_node_api.nim @@ -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