@@ -34,8 +34,6 @@ use crate::ln::interactivetxs::{
34
34
InteractiveTxConstructorArgs, InteractiveTxMessageSend, InteractiveTxSigningSession, InteractiveTxMessageSendResult,
35
35
OutputOwned, SharedOwnedOutput, TX_COMMON_FIELDS_WEIGHT,
36
36
};
37
- #[cfg(splicing)]
38
- use crate::ln::interactivetxs::InteractiveTxMessageSend;
39
37
use crate::ln::msgs;
40
38
use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError};
41
39
use crate::ln::script::{self, ShutdownScript};
@@ -1718,7 +1716,6 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
1718
1716
1719
1717
fn is_initiator(&self) -> bool;
1720
1718
1721
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
1722
1719
fn begin_interactive_funding_tx_construction<ES: Deref>(
1723
1720
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
1724
1721
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1980,14 +1977,12 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
1980
1977
fn dual_funding_context(&self) -> &DualFundingChannelContext {
1981
1978
&self.dual_funding_context
1982
1979
}
1983
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
1984
1980
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
1985
1981
&mut self.dual_funding_context
1986
1982
}
1987
1983
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
1988
1984
&mut self.interactive_tx_constructor
1989
1985
}
1990
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
1991
1986
fn is_initiator(&self) -> bool {
1992
1987
true
1993
1988
}
@@ -2003,14 +1998,12 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
2003
1998
fn dual_funding_context(&self) -> &DualFundingChannelContext {
2004
1999
&self.dual_funding_context
2005
2000
}
2006
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
2007
2001
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2008
2002
&mut self.dual_funding_context
2009
2003
}
2010
2004
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2011
2005
&mut self.interactive_tx_constructor
2012
2006
}
2013
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
2014
2007
fn is_initiator(&self) -> bool {
2015
2008
false
2016
2009
}
@@ -4417,7 +4410,6 @@ pub(super) struct DualFundingChannelContext {
4417
4410
/// The amount in satoshis we will be contributing to the channel.
4418
4411
pub our_funding_satoshis: u64,
4419
4412
/// 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.
4421
4413
pub their_funding_satoshis: Option<u64>,
4422
4414
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
4423
4415
/// to the current block height to align incentives against fee-sniping.
0 commit comments