fix missing relay issue

This commit is contained in:
John Smith
2023-07-02 19:55:21 -05:00
parent b5906a52bc
commit c16888e214
2 changed files with 38 additions and 4 deletions

View File

@@ -852,6 +852,16 @@ impl RoutingTableInner {
}
}
// Register relay info first if we have that
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,
)?;
}
let (node_ids, signed_node_info) = peer_info.destructure();
let mut nr = self.create_node_ref(outer_self, &node_ids, |_rti, e| {
e.update_signed_node_info(routing_domain, signed_node_info);