@@ -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 ) ]
123123pub 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