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
{{ message }}
This repository was archived by the owner on Jan 6, 2025. It is now read-only.
/// The number of blocks the client wants to wait maximally for the channel to be confirmed.
103
-
pubconfirms_within_blocks:u32,
105
+
/// The number of confirmations the funding tx must have before the LSP sends `channel_ready`.
106
+
pubrequired_channel_confirmations:u8,
107
+
/// The maximum number of blocks the client wants to wait until the funding transaction is confirmed.
108
+
pubfunding_confirms_within_blocks:u8,
104
109
/// Indicates how long the channel is leased for in block time.
105
110
pubchannel_expiry_blocks:u32,
106
111
/// May contain arbitrary associated data like a coupon code or a authentication token.
@@ -275,7 +280,8 @@ mod tests {
275
280
276
281
#[test]
277
282
fnoptions_supported_serialization(){
278
-
let min_channel_confirmations = 6;
283
+
let min_required_channel_confirmations = 0;
284
+
let min_funding_confirms_within_blocks = 6;
279
285
let min_onchain_payment_confirmations = Some(6);
280
286
let supports_zero_channel_reserve = true;
281
287
let min_onchain_payment_size_sat = Some(100_000);
@@ -288,7 +294,8 @@ mod tests {
288
294
let max_channel_balance_sat = 100_000_000;
289
295
290
296
let options_supported = OptionsSupported{
291
-
min_channel_confirmations,
297
+
min_required_channel_confirmations,
298
+
min_funding_confirms_within_blocks,
292
299
min_onchain_payment_confirmations,
293
300
supports_zero_channel_reserve,
294
301
min_onchain_payment_size_sat,
@@ -301,7 +308,8 @@ mod tests {
301
308
max_channel_balance_sat,
302
309
};
303
310
304
-
let json_str = r#"{"max_channel_balance_sat":"100000000","max_channel_expiry_blocks":144,"max_initial_client_balance_sat":"100000000","max_initial_lsp_balance_sat":"100000000","min_channel_balance_sat":"100000","min_channel_confirmations":6,"min_initial_client_balance_sat":"10000000","min_initial_lsp_balance_sat":"100000","min_onchain_payment_confirmations":6,"min_onchain_payment_size_sat":"100000","supports_zero_channel_reserve":true}"#;
311
+
let json_str = r#"{"max_channel_balance_sat":"100000000","max_channel_expiry_blocks":144,"max_initial_client_balance_sat":"100000000","max_initial_lsp_balance_sat":"100000000","min_channel_balance_sat":"100000","min_funding_confirms_within_blocks":6,"min_initial_client_balance_sat":"10000000","min_initial_lsp_balance_sat":"100000","min_onchain_payment_confirmations":6,"min_onchain_payment_size_sat":"100000","min_required_channel_confirmations":0,"supports_zero_channel_reserve":true}"#;
0 commit comments