signed node info

This commit is contained in:
John Smith
2022-05-10 21:49:42 -04:00
parent 3b2f4d184f
commit 912869d329
14 changed files with 635 additions and 283 deletions

View File

@@ -60,13 +60,13 @@ impl DiscoveryContext {
// Ask for a public address check from a particular noderef
async fn request_public_address(&self, node_ref: NodeRef) -> Option<SocketAddress> {
let rpc = self.routing_table.rpc_processor();
rpc.rpc_call_info(node_ref.clone())
rpc.rpc_call_status(node_ref.clone())
.await
.map_err(logthru_net!(
"failed to get info answer from {:?}",
"failed to get status answer from {:?}",
node_ref
))
.map(|info_answer| info_answer.sender_info.socket_address)
.map(|sa| sa.sender_info.socket_address)
.unwrap_or(None)
}