@@ -34,8 +34,6 @@ use crate::ln::interactivetxs::{
3434 InteractiveTxConstructorArgs, InteractiveTxMessageSend, InteractiveTxSigningSession, InteractiveTxMessageSendResult,
3535 OutputOwned, SharedOwnedOutput, TX_COMMON_FIELDS_WEIGHT,
3636};
37- #[cfg(splicing)]
38- use crate::ln::interactivetxs::InteractiveTxMessageSend;
3937use crate::ln::msgs;
4038use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError};
4139use crate::ln::script::{self, ShutdownScript};
@@ -1718,7 +1716,6 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
17181716
17191717 fn is_initiator(&self) -> bool;
17201718
1721- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
17221719 fn begin_interactive_funding_tx_construction<ES: Deref>(
17231720 &mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
17241721 prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1980,14 +1977,12 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
19801977 fn dual_funding_context(&self) -> &DualFundingChannelContext {
19811978 &self.dual_funding_context
19821979 }
1983- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
19841980 fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
19851981 &mut self.dual_funding_context
19861982 }
19871983 fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
19881984 &mut self.interactive_tx_constructor
19891985 }
1990- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
19911986 fn is_initiator(&self) -> bool {
19921987 true
19931988 }
@@ -2003,14 +1998,12 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
20031998 fn dual_funding_context(&self) -> &DualFundingChannelContext {
20041999 &self.dual_funding_context
20052000 }
2006- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
20072001 fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
20082002 &mut self.dual_funding_context
20092003 }
20102004 fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
20112005 &mut self.interactive_tx_constructor
20122006 }
2013- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
20142007 fn is_initiator(&self) -> bool {
20152008 false
20162009 }
@@ -4417,7 +4410,6 @@ pub(super) struct DualFundingChannelContext {
44174410 /// The amount in satoshis we will be contributing to the channel.
44184411 pub our_funding_satoshis: u64,
44194412 /// The amount in satoshis our counterparty will be contributing to the channel.
4420- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
44214413 pub their_funding_satoshis: Option<u64>,
44224414 /// The funding transaction locktime suggested by the initiator. If set by us, it is always set
44234415 /// to the current block height to align incentives against fee-sniping.
0 commit comments