network debugging

This commit is contained in:
John Smith 2023-07-11 21:56:13 -04:00
parent 2e2b6ee62e
commit 2a807715b6
2 changed files with 15 additions and 10 deletions

View File

@ -852,14 +852,19 @@ impl RoutingTableInner {
}
}
// Register relay info first if we have that
// Register relay info first if we have that and the relay isn't us
if let Some(relay_peer_info) = peer_info.signed_node_info().relay_peer_info() {
self.register_node_with_peer_info(
outer_self.clone(),
routing_domain,
relay_peer_info,
false,
)?;
if !self
.unlocked_inner
.matches_own_node_id(relay_peer_info.node_ids())
{
self.register_node_with_peer_info(
outer_self.clone(),
routing_domain,
relay_peer_info,
false,
)?;
}
}
let (node_ids, signed_node_info) = peer_info.destructure();

View File

@ -1658,7 +1658,7 @@ impl RPCProcessor {
let span_id = Span::current().id();
send_channel
.try_send((span_id, msg))
.wrap_err("failed to enqueue received RPC message")?;
.map_err(|e| eyre!("failed to enqueue direct RPC message: {}", e))?;
Ok(())
}
@ -1694,7 +1694,7 @@ impl RPCProcessor {
let span_id = Span::current().id();
send_channel
.try_send((span_id, msg))
.wrap_err("failed to enqueue received RPC message")?;
.map_err(|e| eyre!("failed to enqueue safety routed RPC message: {}", e))?;
Ok(())
}
@ -1733,7 +1733,7 @@ impl RPCProcessor {
let span_id = Span::current().id();
send_channel
.try_send((span_id, msg))
.wrap_err("failed to enqueue received RPC message")?;
.map_err(|e| eyre!("failed to enqueue private routed RPC message: {}", e))?;
Ok(())
}
}