We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c13c796 commit d69fb17Copy full SHA for d69fb17
1 file changed
libs/gl-plugin/src/node/mod.rs
@@ -296,10 +296,12 @@ impl Node for PluginNodeServer {
296
297
// In case the client did not specify an LSP to work with,
298
// let's enumerate them, and select the best option ourselves.
299
- let lsps = self.get_lsps_offers(&mut rpc).await.map_err(|_e| {
+ let mut lsps = self.get_lsps_offers(&mut rpc).await.map_err(|_e| {
300
Status::not_found("Could not retrieve LSPS peers for invoice negotiation.")
301
})?;
302
303
+ lsps.sort_by_key(|l| l.node_id.clone());
304
+
305
if lsps.len() < 1 {
306
return Err(Status::not_found(
307
"Could not find an LSP peer to negotiate the LSPS2 channel for this invoice.",
0 commit comments