Skip to content

Commit 9e7c5ce

Browse files
committed
Lint fixes
1 parent 02e918d commit 9e7c5ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1689,6 +1689,7 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
16891689

16901690
fn is_initiator(&self) -> bool;
16911691

1692+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
16921693
fn begin_interactive_funding_tx_construction<ES: Deref>(
16931694
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
16941695
extra_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1933,12 +1934,14 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
19331934
fn dual_funding_context(&self) -> &DualFundingChannelContext {
19341935
&self.dual_funding_context
19351936
}
1937+
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
19361938
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
19371939
&mut self.dual_funding_context
19381940
}
19391941
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
19401942
&mut self.interactive_tx_constructor
19411943
}
1944+
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
19421945
fn is_initiator(&self) -> bool {
19431946
true
19441947
}
@@ -4249,6 +4252,7 @@ fn get_v2_channel_reserve_satoshis(channel_value_satoshis: u64, dust_limit_satos
42494252
cmp::min(channel_value_satoshis, cmp::max(q, dust_limit_satoshis))
42504253
}
42514254

4255+
#[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
42524256
pub(super) fn maybe_add_funding_change_output<SP: Deref>(signer_provider: &SP, is_initiator: bool,
42534257
our_funding_satoshis: u64, funding_inputs_prev_outputs: &Vec<TxOut>,
42544258
funding_outputs: &mut Vec<OutputOwned>, funding_feerate_sat_per_1000_weight: u32,
@@ -4343,6 +4347,7 @@ pub(super) struct DualFundingChannelContext {
43434347
/// The amount in satoshis we will be contributing to the channel.
43444348
pub our_funding_satoshis: u64,
43454349
/// The amount in satoshis our counterparty will be contributing to the channel.
4350+
#[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
43464351
pub their_funding_satoshis: Option<u64>,
43474352
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
43484353
/// to the current block height to align incentives against fee-sniping.

0 commit comments

Comments
 (0)