Skip to content

Commit 8349a29

Browse files
committed
Add begin_interactive_funding_tx_construction()
1 parent 0ac5684 commit 8349a29

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lightning/src/ln/channel.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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;
3937
use crate::ln::msgs;
4038
use crate::ln::msgs::{ClosingSigned, ClosingSignedFeeRange, DecodeError};
4139
use 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

Comments
 (0)