@@ -2332,6 +2332,56 @@ impl<SP: Deref> PendingV2Channel<SP> where SP::Target: SignerProvider {
23322332 }
23332333}
23342334
2335+ /*
2336+ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Target: SignerProvider {
2337+ fn context(&self) -> &ChannelContext<SP> {
2338+ &self.context
2339+ }
2340+ fn context_mut(&mut self) -> &mut ChannelContext<SP> {
2341+ &mut self.context
2342+ }
2343+ fn dual_funding_context(&self) -> &DualFundingChannelContext {
2344+ &self.dual_funding_context
2345+ }
2346+ fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2347+ &mut self.dual_funding_context
2348+ }
2349+ fn unfunded_context(&self) -> &UnfundedChannelContext {
2350+ &self.unfunded_context
2351+ }
2352+ fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2353+ &mut self.interactive_tx_constructor
2354+ }
2355+ fn is_initiator(&self) -> bool {
2356+ true
2357+ }
2358+ }
2359+
2360+ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Target: SignerProvider {
2361+ fn context(&self) -> &ChannelContext<SP> {
2362+ &self.context
2363+ }
2364+ fn context_mut(&mut self) -> &mut ChannelContext<SP> {
2365+ &mut self.context
2366+ }
2367+ fn dual_funding_context(&self) -> &DualFundingChannelContext {
2368+ &self.dual_funding_context
2369+ }
2370+ fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2371+ &mut self.dual_funding_context
2372+ }
2373+ fn unfunded_context(&self) -> &UnfundedChannelContext {
2374+ &self.unfunded_context
2375+ }
2376+ fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2377+ &mut self.interactive_tx_constructor
2378+ }
2379+ fn is_initiator(&self) -> bool {
2380+ false
2381+ }
2382+ }
2383+ */
2384+
23352385impl<SP: Deref> ChannelContext<SP> where SP::Target: SignerProvider {
23362386 fn new_for_inbound_channel<'a, ES: Deref, F: Deref, L: Deref>(
23372387 fee_estimator: &'a LowerBoundedFeeEstimator<F>,
@@ -4716,7 +4766,6 @@ pub(super) struct DualFundingChannelContext {
47164766 /// The amount in satoshis we will be contributing to the channel.
47174767 pub our_funding_satoshis: u64,
47184768 /// The amount in satoshis our counterparty will be contributing to the channel.
4719- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
47204769 pub their_funding_satoshis: Option<u64>,
47214770 /// The funding transaction locktime suggested by the initiator. If set by us, it is always set
47224771 /// to the current block height to align incentives against fee-sniping.
0 commit comments