@@ -28,6 +28,7 @@ use bitcoin::secp256k1;
28
28
use crate::ln::types::ChannelId;
29
29
use crate::types::payment::{PaymentPreimage, PaymentHash};
30
30
use crate::types::features::{ChannelTypeFeatures, InitFeatures};
31
+ use crate::ln::interactivetxs::InteractiveTxConstructor;
31
32
use crate::ln::msgs;
32
33
use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError};
33
34
use crate::ln::script::{self, ShutdownScript};
@@ -8132,7 +8133,7 @@ impl<SP: Deref> InboundV1Channel<SP> where SP::Target: SignerProvider {
8132
8133
msg.push_msat,
8133
8134
msg.common_fields.clone(),
8134
8135
)?,
8135
- unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 }
8136
+ unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
8136
8137
};
8137
8138
Ok(chan)
8138
8139
}
@@ -8266,6 +8267,8 @@ pub(super) struct OutboundV2Channel<SP: Deref> where SP::Target: SignerProvider
8266
8267
pub context: ChannelContext<SP>,
8267
8268
pub unfunded_context: UnfundedChannelContext,
8268
8269
pub dual_funding_context: DualFundingChannelContext,
8270
+ /// The current interactive transaction construction session under negotiation.
8271
+ interactive_tx_constructor: Option<InteractiveTxConstructor>,
8269
8272
}
8270
8273
8271
8274
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
@@ -8317,7 +8320,8 @@ impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
8317
8320
their_funding_satoshis: 0,
8318
8321
funding_tx_locktime,
8319
8322
funding_feerate_sat_per_1000_weight,
8320
- }
8323
+ },
8324
+ interactive_tx_constructor: None,
8321
8325
};
8322
8326
Ok(chan)
8323
8327
}
@@ -8391,6 +8395,8 @@ pub(super) struct InboundV2Channel<SP: Deref> where SP::Target: SignerProvider {
8391
8395
pub context: ChannelContext<SP>,
8392
8396
pub unfunded_context: UnfundedChannelContext,
8393
8397
pub dual_funding_context: DualFundingChannelContext,
8398
+ /// The current interactive transaction construction session under negotiation.
8399
+ interactive_tx_constructor: Option<InteractiveTxConstructor>,
8394
8400
}
8395
8401
8396
8402
impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
@@ -8462,7 +8468,8 @@ impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
8462
8468
their_funding_satoshis: msg.common_fields.funding_satoshis,
8463
8469
funding_tx_locktime: msg.locktime,
8464
8470
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
8465
- }
8471
+ },
8472
+ interactive_tx_constructor: None,
8466
8473
};
8467
8474
8468
8475
Ok(chan)
0 commit comments