@@ -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};
@@ -1728,7 +1726,6 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
1728
1726
1729
1727
fn is_initiator(&self) -> bool;
1730
1728
1731
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
1732
1729
fn begin_interactive_funding_tx_construction<ES: Deref>(
1733
1730
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
1734
1731
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1992,7 +1989,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
1992
1989
fn dual_funding_context(&self) -> &DualFundingChannelContext {
1993
1990
&self.dual_funding_context
1994
1991
}
1995
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
1996
1992
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
1997
1993
&mut self.dual_funding_context
1998
1994
}
@@ -2002,7 +1998,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
2002
1998
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2003
1999
&mut self.interactive_tx_constructor
2004
2000
}
2005
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
2006
2001
fn is_initiator(&self) -> bool {
2007
2002
true
2008
2003
}
@@ -2018,7 +2013,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
2018
2013
fn dual_funding_context(&self) -> &DualFundingChannelContext {
2019
2014
&self.dual_funding_context
2020
2015
}
2021
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
2022
2016
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
2023
2017
&mut self.dual_funding_context
2024
2018
}
@@ -2028,7 +2022,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
2028
2022
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
2029
2023
&mut self.interactive_tx_constructor
2030
2024
}
2031
- #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
2032
2025
fn is_initiator(&self) -> bool {
2033
2026
false
2034
2027
}
@@ -4420,7 +4413,6 @@ pub(super) struct DualFundingChannelContext {
4420
4413
/// The amount in satoshis we will be contributing to the channel.
4421
4414
pub our_funding_satoshis: u64,
4422
4415
/// The amount in satoshis our counterparty will be contributing to the channel.
4423
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
4424
4416
pub their_funding_satoshis: Option<u64>,
4425
4417
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
4426
4418
/// to the current block height to align incentives against fee-sniping.
0 commit comments