You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement bLIP-32 resolver discovery via network graph
Adds logic to scan the network graph for nodes that support both DNS resolution and Onion Messaging.
- Iterates through the network graph to find up to 5 candidate nodes.
- Validates node features for DNS and Onion Message support.
- Adds error handling and logging for missing BIP-353 requirements.
let supports_dns = info.features().supports_dns_resolution();
195
+
let supports_om = info.features().supports_onion_messages();
196
+
if supports_dns && supports_om {
197
+
resolvers.push(node_id.clone());
198
+
}
199
+
}
200
+
if resolvers.len() > 5{
201
+
break;
202
+
}
203
+
}
204
+
resolvers
205
+
};
206
+
207
+
if dns_resolvers.is_empty(){
208
+
log_error!(self.logger,"No nodes in the network graph support both DNS resolution and onion messaging, which are required for bLIP-32. Please ensure you have at least one such node in your network graph before making BIP-353 payments.");
0 commit comments