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

Commit b47135e

Browse files
authored
Merge pull request #85 from tnull/2024-01-adjust-LSPS1-naming
Make LSPS1 variable naming more consistent
2 parents 8503d86 + 22956b4 commit b47135e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lsps1/msgs.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ pub struct GetInfoRequest {}
3535
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
3636
pub struct OptionsSupported {
3737
/// The minimum number of block confirmations before the LSP accepts a channel as confirmed.
38-
pub minimum_channel_confirmations: u8,
38+
pub min_channel_confirmations: u8,
3939
/// The minimum number of block confirmations before the LSP accepts an on-chain payment as confirmed.
40-
pub minimum_onchain_payment_confirmations: u8,
40+
pub min_onchain_payment_confirmations: u8,
4141
/// Indicates if the LSP supports zero reserve.
4242
pub supports_zero_channel_reserve: bool,
4343
/// Indicates the minimum amount of satoshi that is required for the LSP to accept a payment
@@ -154,10 +154,10 @@ pub struct OrderPayment {
154154
pub onchain_address: String,
155155
/// The minimum number of block confirmations that are required for the on-chain payment to be
156156
/// considered confirmed.
157-
pub onchain_block_confirmations_required: u8,
157+
pub min_onchain_payment_confirmations: u8,
158158
/// The minimum fee rate for the on-chain payment in case the client wants the payment to be
159159
/// confirmed without a confirmation.
160-
pub minimum_fee_for_0conf: u8,
160+
pub min_fee_for_0conf: u8,
161161
/// Details regarding a detected on-chain payment.
162162
pub onchain_payment: OnchainPayment,
163163
}

0 commit comments

Comments
 (0)