@@ -19,10 +19,10 @@ use lightning::routing::router::{RouteHint, RouteHintHop};
1919use lightning_invoice:: { Bolt11Invoice , Bolt11InvoiceDescription , InvoiceBuilder , RoutingFees } ;
2020use lightning_liquidity:: events:: Event ;
2121use lightning_liquidity:: lsps0:: ser:: RequestId ;
22- use lightning_liquidity:: lsps1:: client:: LSPS1ClientConfig ;
22+ use lightning_liquidity:: lsps1:: client:: LSPS1ClientConfig as LdkLSPS1ClientConfig ;
2323use lightning_liquidity:: lsps1:: event:: LSPS1ClientEvent ;
2424use lightning_liquidity:: lsps1:: msgs:: { ChannelInfo , LSPS1Options , OrderId , OrderParameters } ;
25- use lightning_liquidity:: lsps2:: client:: LSPS2ClientConfig ;
25+ use lightning_liquidity:: lsps2:: client:: LSPS2ClientConfig as LdkLSPS2ClientConfig ;
2626use lightning_liquidity:: lsps2:: event:: LSPS2ClientEvent ;
2727use lightning_liquidity:: lsps2:: msgs:: OpeningFeeParams ;
2828use lightning_liquidity:: lsps2:: utils:: compute_opening_fee;
@@ -44,7 +44,7 @@ struct LSPS1Client {
4444 lsp_node_id : PublicKey ,
4545 lsp_address : SocketAddress ,
4646 token : Option < String > ,
47- client_config : LSPS1ClientConfig ,
47+ ldk_client_config : LdkLSPS1ClientConfig ,
4848 pending_opening_params_requests :
4949 Mutex < HashMap < RequestId , oneshot:: Sender < LSPS1OpeningParamsResponse > > > ,
5050 pending_create_order_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS1OrderStatus > > > ,
@@ -56,7 +56,7 @@ struct LSPS2Client {
5656 lsp_node_id : PublicKey ,
5757 lsp_address : SocketAddress ,
5858 token : Option < String > ,
59- client_config : LSPS2ClientConfig ,
59+ ldk_client_config : LdkLSPS2ClientConfig ,
6060 pending_fee_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS2FeeResponse > > > ,
6161 pending_buy_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS2BuyResponse > > > ,
6262}
@@ -99,15 +99,15 @@ where
9999 & mut self , lsp_node_id : PublicKey , lsp_address : SocketAddress , token : Option < String > ,
100100 ) -> & mut Self {
101101 // TODO: allow to set max_channel_fees_msat
102- let client_config = LSPS1ClientConfig { max_channel_fees_msat : None } ;
102+ let ldk_client_config = LdkLSPS1ClientConfig { max_channel_fees_msat : None } ;
103103 let pending_opening_params_requests = Mutex :: new ( HashMap :: new ( ) ) ;
104104 let pending_create_order_requests = Mutex :: new ( HashMap :: new ( ) ) ;
105105 let pending_check_order_status_requests = Mutex :: new ( HashMap :: new ( ) ) ;
106106 self . lsps1_client = Some ( LSPS1Client {
107107 lsp_node_id,
108108 lsp_address,
109109 token,
110- client_config ,
110+ ldk_client_config ,
111111 pending_opening_params_requests,
112112 pending_create_order_requests,
113113 pending_check_order_status_requests,
@@ -118,23 +118,23 @@ where
118118 pub ( crate ) fn lsps2_client (
119119 & mut self , lsp_node_id : PublicKey , lsp_address : SocketAddress , token : Option < String > ,
120120 ) -> & mut Self {
121- let client_config = LSPS2ClientConfig { } ;
121+ let ldk_client_config = LdkLSPS2ClientConfig { } ;
122122 let pending_fee_requests = Mutex :: new ( HashMap :: new ( ) ) ;
123123 let pending_buy_requests = Mutex :: new ( HashMap :: new ( ) ) ;
124124 self . lsps2_client = Some ( LSPS2Client {
125125 lsp_node_id,
126126 lsp_address,
127127 token,
128- client_config ,
128+ ldk_client_config ,
129129 pending_fee_requests,
130130 pending_buy_requests,
131131 } ) ;
132132 self
133133 }
134134
135135 pub ( crate ) fn build ( self ) -> LiquiditySource < L > {
136- let lsps1_client_config = self . lsps1_client . as_ref ( ) . map ( |s| s. client_config . clone ( ) ) ;
137- let lsps2_client_config = self . lsps2_client . as_ref ( ) . map ( |s| s. client_config . clone ( ) ) ;
136+ let lsps1_client_config = self . lsps1_client . as_ref ( ) . map ( |s| s. ldk_client_config . clone ( ) ) ;
137+ let lsps2_client_config = self . lsps2_client . as_ref ( ) . map ( |s| s. ldk_client_config . clone ( ) ) ;
138138 let liquidity_client_config =
139139 Some ( LiquidityClientConfig { lsps1_client_config, lsps2_client_config } ) ;
140140
0 commit comments