@@ -19,10 +19,10 @@ use lightning::routing::router::{RouteHint, RouteHintHop};
19
19
use lightning_invoice:: { Bolt11Invoice , Bolt11InvoiceDescription , InvoiceBuilder , RoutingFees } ;
20
20
use lightning_liquidity:: events:: Event ;
21
21
use lightning_liquidity:: lsps0:: ser:: RequestId ;
22
- use lightning_liquidity:: lsps1:: client:: LSPS1ClientConfig ;
22
+ use lightning_liquidity:: lsps1:: client:: LSPS1ClientConfig as LdkLSPS1ClientConfig ;
23
23
use lightning_liquidity:: lsps1:: event:: LSPS1ClientEvent ;
24
24
use lightning_liquidity:: lsps1:: msgs:: { ChannelInfo , LSPS1Options , OrderId , OrderParameters } ;
25
- use lightning_liquidity:: lsps2:: client:: LSPS2ClientConfig ;
25
+ use lightning_liquidity:: lsps2:: client:: LSPS2ClientConfig as LdkLSPS2ClientConfig ;
26
26
use lightning_liquidity:: lsps2:: event:: LSPS2ClientEvent ;
27
27
use lightning_liquidity:: lsps2:: msgs:: OpeningFeeParams ;
28
28
use lightning_liquidity:: lsps2:: utils:: compute_opening_fee;
@@ -44,7 +44,7 @@ struct LSPS1Client {
44
44
lsp_node_id : PublicKey ,
45
45
lsp_address : SocketAddress ,
46
46
token : Option < String > ,
47
- client_config : LSPS1ClientConfig ,
47
+ ldk_client_config : LdkLSPS1ClientConfig ,
48
48
pending_opening_params_requests :
49
49
Mutex < HashMap < RequestId , oneshot:: Sender < LSPS1OpeningParamsResponse > > > ,
50
50
pending_create_order_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS1OrderStatus > > > ,
@@ -56,7 +56,7 @@ struct LSPS2Client {
56
56
lsp_node_id : PublicKey ,
57
57
lsp_address : SocketAddress ,
58
58
token : Option < String > ,
59
- client_config : LSPS2ClientConfig ,
59
+ ldk_client_config : LdkLSPS2ClientConfig ,
60
60
pending_fee_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS2FeeResponse > > > ,
61
61
pending_buy_requests : Mutex < HashMap < RequestId , oneshot:: Sender < LSPS2BuyResponse > > > ,
62
62
}
@@ -99,15 +99,15 @@ where
99
99
& mut self , lsp_node_id : PublicKey , lsp_address : SocketAddress , token : Option < String > ,
100
100
) -> & mut Self {
101
101
// 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 } ;
103
103
let pending_opening_params_requests = Mutex :: new ( HashMap :: new ( ) ) ;
104
104
let pending_create_order_requests = Mutex :: new ( HashMap :: new ( ) ) ;
105
105
let pending_check_order_status_requests = Mutex :: new ( HashMap :: new ( ) ) ;
106
106
self . lsps1_client = Some ( LSPS1Client {
107
107
lsp_node_id,
108
108
lsp_address,
109
109
token,
110
- client_config ,
110
+ ldk_client_config ,
111
111
pending_opening_params_requests,
112
112
pending_create_order_requests,
113
113
pending_check_order_status_requests,
@@ -118,23 +118,23 @@ where
118
118
pub ( crate ) fn lsps2_client (
119
119
& mut self , lsp_node_id : PublicKey , lsp_address : SocketAddress , token : Option < String > ,
120
120
) -> & mut Self {
121
- let client_config = LSPS2ClientConfig { } ;
121
+ let ldk_client_config = LdkLSPS2ClientConfig { } ;
122
122
let pending_fee_requests = Mutex :: new ( HashMap :: new ( ) ) ;
123
123
let pending_buy_requests = Mutex :: new ( HashMap :: new ( ) ) ;
124
124
self . lsps2_client = Some ( LSPS2Client {
125
125
lsp_node_id,
126
126
lsp_address,
127
127
token,
128
- client_config ,
128
+ ldk_client_config ,
129
129
pending_fee_requests,
130
130
pending_buy_requests,
131
131
} ) ;
132
132
self
133
133
}
134
134
135
135
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 ( ) ) ;
138
138
let liquidity_client_config =
139
139
Some ( LiquidityClientConfig { lsps1_client_config, lsps2_client_config } ) ;
140
140
0 commit comments