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

Commit d3c03f9

Browse files
committed
LSPS1: Use u16 instead of u8
As per BitcoinAndLightningLayerSpecs/lsp#113
1 parent 1da2a14 commit d3c03f9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lsps1/msgs.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ pub struct GetInfoRequest {}
4040
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
4141
pub struct OptionsSupported {
4242
/// The smallest number of confirmations needed for the LSP to accept a channel as confirmed.
43-
pub min_required_channel_confirmations: u8,
43+
pub min_required_channel_confirmations: u16,
4444
/// The smallest number of blocks in which the LSP can confirm the funding transaction.
45-
pub min_funding_confirms_within_blocks: u8,
45+
pub min_funding_confirms_within_blocks: u16,
4646
/// The minimum number of block confirmations before the LSP accepts an on-chain payment as confirmed.
47-
pub min_onchain_payment_confirmations: Option<u8>,
47+
pub min_onchain_payment_confirmations: Option<u16>,
4848
/// Indicates if the LSP supports zero reserve.
4949
pub supports_zero_channel_reserve: bool,
5050
/// Indicates the minimum amount of satoshi that is required for the LSP to accept a payment
@@ -104,9 +104,9 @@ pub struct OrderParams {
104104
#[serde(with = "string_amount")]
105105
pub client_balance_sat: u64,
106106
/// The number of confirmations the funding tx must have before the LSP sends `channel_ready`.
107-
pub required_channel_confirmations: u8,
107+
pub required_channel_confirmations: u16,
108108
/// The maximum number of blocks the client wants to wait until the funding transaction is confirmed.
109-
pub funding_confirms_within_blocks: u8,
109+
pub funding_confirms_within_blocks: u16,
110110
/// Indicates how long the channel is leased for in block time.
111111
pub channel_expiry_blocks: u32,
112112
/// May contain arbitrary associated data like a coupon code or a authentication token.
@@ -167,7 +167,7 @@ pub struct PaymentInfo {
167167
pub onchain_address: Address<NetworkUnchecked>,
168168
/// The minimum number of block confirmations that are required for the on-chain payment to be
169169
/// considered confirmed.
170-
pub min_onchain_payment_confirmations: Option<u8>,
170+
pub min_onchain_payment_confirmations: Option<u16>,
171171
/// The minimum fee rate for the on-chain payment in case the client wants the payment to be
172172
/// confirmed without a confirmation.
173173
pub min_fee_for_0conf: u8,

0 commit comments

Comments
 (0)