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

Commit 96be976

Browse files
authored
Merge pull request #96 from Srg213/lsps1
LSPS1: Changes to msgs.rs
2 parents 43746ff + 427196e commit 96be976

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/lsps1/msgs.rs

Lines changed: 2 additions & 4 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
@@ -121,8 +121,6 @@ pub struct CreateOrderResponse {
121121
/// An object representing the state of an order.
122122
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
123123
pub enum OrderState {
124-
/// TODO: this is superfluous and should likely be removed.
125-
Requested,
126124
/// The order has been created.
127125
Created,
128126
/// The LSP has opened the channel and published the funding transaction.
@@ -147,7 +145,7 @@ pub struct OrderPayment {
147145
pub onchain_address: String,
148146
/// The minimum number of block confirmations that are required for the on-chain payment to be
149147
/// considered confirmed.
150-
pub min_onchain_payment_confirmations: u8,
148+
pub min_onchain_payment_confirmations: Option<u8>,
151149
/// The minimum fee rate for the on-chain payment in case the client wants the payment to be
152150
/// confirmed without a confirmation.
153151
pub min_fee_for_0conf: u8,

0 commit comments

Comments
 (0)