fix
This commit is contained in:
parent
e52b5f60cd
commit
f298650ffa
@ -115,11 +115,13 @@ impl RouteSetSpecDetail {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
pub fn contains_nodes(&self, nodes: &[TypedKey]) -> bool {
|
pub fn contains_nodes(&self, nodes: &[TypedKey]) -> bool {
|
||||||
for h in &self.hop_node_refs {
|
for tk in nodes {
|
||||||
if h.node_ids().contains_any(nodes) {
|
for (_pk, rsd) in &self.route_set {
|
||||||
|
if rsd.crypto_kind == tk.kind && rsd.hops.contains(&tk.value) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
false
|
false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user