@@ -96,8 +96,8 @@ enum GossipSourceConfig {
9696
9797#[ derive( Debug , Clone ) ]
9898struct LiquiditySourceConfig {
99- // LSPS2 service's (address, node_id , token)
100- lsps2_service : Option < ( SocketAddress , PublicKey , Option < String > ) > ,
99+ // LSPS2 service's (node_id, address , token)
100+ lsps2_service : Option < ( PublicKey , SocketAddress , Option < String > ) > ,
101101}
102102
103103impl Default for LiquiditySourceConfig {
@@ -281,14 +281,14 @@ impl NodeBuilder {
281281 ///
282282 /// The given `token` will be used by the LSP to authenticate the user.
283283 pub fn set_liquidity_source_lsps2 (
284- & mut self , address : SocketAddress , node_id : PublicKey , token : Option < String > ,
284+ & mut self , node_id : PublicKey , address : SocketAddress , token : Option < String > ,
285285 ) -> & mut Self {
286286 // Mark the LSP as trusted for 0conf
287287 self . config . trusted_peers_0conf . push ( node_id. clone ( ) ) ;
288288
289289 let liquidity_source_config =
290290 self . liquidity_source_config . get_or_insert ( LiquiditySourceConfig :: default ( ) ) ;
291- liquidity_source_config. lsps2_service = Some ( ( address , node_id , token) ) ;
291+ liquidity_source_config. lsps2_service = Some ( ( node_id , address , token) ) ;
292292 self
293293 }
294294
@@ -600,9 +600,9 @@ impl ArcedNodeBuilder {
600600 ///
601601 /// The given `token` will be used by the LSP to authenticate the user.
602602 pub fn set_liquidity_source_lsps2 (
603- & self , address : SocketAddress , node_id : PublicKey , token : Option < String > ,
603+ & self , node_id : PublicKey , address : SocketAddress , token : Option < String > ,
604604 ) {
605- self . inner . write ( ) . unwrap ( ) . set_liquidity_source_lsps2 ( address , node_id , token) ;
605+ self . inner . write ( ) . unwrap ( ) . set_liquidity_source_lsps2 ( node_id , address , token) ;
606606 }
607607
608608 /// Sets the used storage directory path.
@@ -1053,7 +1053,7 @@ fn build_with_store_internal(
10531053 } ;
10541054
10551055 let liquidity_source = liquidity_source_config. as_ref ( ) . and_then ( |lsc| {
1056- lsc. lsps2_service . as_ref ( ) . map ( |( address , node_id , token) | {
1056+ lsc. lsps2_service . as_ref ( ) . map ( |( node_id , address , token) | {
10571057 let lsps2_client_config = Some ( LSPS2ClientConfig { } ) ;
10581058 let liquidity_client_config = Some ( LiquidityClientConfig { lsps2_client_config } ) ;
10591059 let liquidity_manager = Arc :: new ( LiquidityManager :: new (
@@ -1065,8 +1065,8 @@ fn build_with_store_internal(
10651065 liquidity_client_config,
10661066 ) ) ;
10671067 Arc :: new ( LiquiditySource :: new_lsps2 (
1068- address. clone ( ) ,
10691068 * node_id,
1069+ address. clone ( ) ,
10701070 token. clone ( ) ,
10711071 Arc :: clone ( & channel_manager) ,
10721072 Arc :: clone ( & keys_manager) ,
0 commit comments