use crate::ln::types::ChannelId;
use crate::types::payment::{PaymentPreimage, PaymentHash};
use crate::types::features::{ChannelTypeFeatures, InitFeatures};
+use crate::ln::interactivetxs::InteractiveTxConstructor;
use crate::ln::msgs;
use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError};
use crate::ln::script::{self, ShutdownScript};
msg.push_msat,
msg.common_fields.clone(),
)?,
- unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 }
+ unfunded_context: UnfundedChannelContext { unfunded_channel_age_ticks: 0 },
};
Ok(chan)
}
pub context: ChannelContext<SP>,
pub unfunded_context: UnfundedChannelContext,
pub dual_funding_context: DualFundingChannelContext,
+ /// The current interactive transaction construction session under negotiation.
+ interactive_tx_constructor: Option<InteractiveTxConstructor>,
}
impl<SP: Deref> OutboundV2Channel<SP> where SP::Target: SignerProvider {
their_funding_satoshis: 0,
funding_tx_locktime,
funding_feerate_sat_per_1000_weight,
- }
+ },
+ interactive_tx_constructor: None,
};
Ok(chan)
}
pub context: ChannelContext<SP>,
pub unfunded_context: UnfundedChannelContext,
pub dual_funding_context: DualFundingChannelContext,
+ /// The current interactive transaction construction session under negotiation.
+ interactive_tx_constructor: Option<InteractiveTxConstructor>,
}
impl<SP: Deref> InboundV2Channel<SP> where SP::Target: SignerProvider {
their_funding_satoshis: msg.common_fields.funding_satoshis,
funding_tx_locktime: msg.locktime,
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
- }
+ },
+ interactive_tx_constructor: None,
};
Ok(chan)