Skip to content

Commit e254fbe

Browse files
committed
Add begin_interactive_funding_tx_construction()
1 parent cb677ed commit e254fbe

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};
@@ -1728,7 +1726,6 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
17281726

17291727
fn is_initiator(&self) -> bool;
17301728

1731-
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
17321729
fn begin_interactive_funding_tx_construction<ES: Deref>(
17331730
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
17341731
prev_funding_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1992,7 +1989,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
19921989
fn dual_funding_context(&self) -> &DualFundingChannelContext {
19931990
&self.dual_funding_context
19941991
}
1995-
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
19961992
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
19971993
&mut self.dual_funding_context
19981994
}
@@ -2002,7 +1998,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
20021998
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
20031999
&mut self.interactive_tx_constructor
20042000
}
2005-
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
20062001
fn is_initiator(&self) -> bool {
20072002
true
20082003
}
@@ -2018,7 +2013,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
20182013
fn dual_funding_context(&self) -> &DualFundingChannelContext {
20192014
&self.dual_funding_context
20202015
}
2021-
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
20222016
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
20232017
&mut self.dual_funding_context
20242018
}
@@ -2028,7 +2022,6 @@ impl<SP: Deref> InteractivelyFunded<SP> for InboundV2Channel<SP> where SP::Targe
20282022
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
20292023
&mut self.interactive_tx_constructor
20302024
}
2031-
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
20322025
fn is_initiator(&self) -> bool {
20332026
false
20342027
}
@@ -4420,7 +4413,6 @@ pub(super) struct DualFundingChannelContext {
44204413
/// The amount in satoshis we will be contributing to the channel.
44214414
pub our_funding_satoshis: u64,
44224415
/// 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.
44244416
pub their_funding_satoshis: Option<u64>,
44254417
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
44264418
/// to the current block height to align incentives against fee-sniping.

0 commit comments

Comments
 (0)