Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 1878fe3

Browse files
committed
Allow null for min_onchain_payment_confirmations
1 parent 43746ff commit 1878fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lsps1/msgs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub struct OptionsSupported {
3636
/// The minimum number of block confirmations before the LSP accepts a channel as confirmed.
3737
pub min_channel_confirmations: u8,
3838
/// The minimum number of block confirmations before the LSP accepts an on-chain payment as confirmed.
39-
pub min_onchain_payment_confirmations: u8,
39+
pub min_onchain_payment_confirmations: Option<u8>,
4040
/// Indicates if the LSP supports zero reserve.
4141
pub supports_zero_channel_reserve: bool,
4242
/// Indicates the minimum amount of satoshi that is required for the LSP to accept a payment
@@ -147,7 +147,7 @@ pub struct OrderPayment {
147147
pub onchain_address: String,
148148
/// The minimum number of block confirmations that are required for the on-chain payment to be
149149
/// considered confirmed.
150-
pub min_onchain_payment_confirmations: u8,
150+
pub min_onchain_payment_confirmations: Option<u8>,
151151
/// The minimum fee rate for the on-chain payment in case the client wants the payment to be
152152
/// confirmed without a confirmation.
153153
pub min_fee_for_0conf: u8,

0 commit comments

Comments
 (0)