network debugging
This commit is contained in:
parent
2e2b6ee62e
commit
2a807715b6
@ -852,8 +852,12 @@ 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() {
|
if let Some(relay_peer_info) = peer_info.signed_node_info().relay_peer_info() {
|
||||||
|
if !self
|
||||||
|
.unlocked_inner
|
||||||
|
.matches_own_node_id(relay_peer_info.node_ids())
|
||||||
|
{
|
||||||
self.register_node_with_peer_info(
|
self.register_node_with_peer_info(
|
||||||
outer_self.clone(),
|
outer_self.clone(),
|
||||||
routing_domain,
|
routing_domain,
|
||||||
@ -861,6 +865,7 @@ impl RoutingTableInner {
|
|||||||
false,
|
false,
|
||||||
)?;
|
)?;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
let (node_ids, signed_node_info) = peer_info.destructure();
|
let (node_ids, signed_node_info) = peer_info.destructure();
|
||||||
let mut nr = self.create_node_ref(outer_self, &node_ids, |_rti, e| {
|
let mut nr = self.create_node_ref(outer_self, &node_ids, |_rti, e| {
|
||||||
|
@ -1658,7 +1658,7 @@ impl RPCProcessor {
|
|||||||
let span_id = Span::current().id();
|
let span_id = Span::current().id();
|
||||||
send_channel
|
send_channel
|
||||||
.try_send((span_id, msg))
|
.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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1694,7 +1694,7 @@ impl RPCProcessor {
|
|||||||
let span_id = Span::current().id();
|
let span_id = Span::current().id();
|
||||||
send_channel
|
send_channel
|
||||||
.try_send((span_id, msg))
|
.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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1733,7 +1733,7 @@ impl RPCProcessor {
|
|||||||
let span_id = Span::current().id();
|
let span_id = Span::current().id();
|
||||||
send_channel
|
send_channel
|
||||||
.try_send((span_id, msg))
|
.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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user