@@ -1689,6 +1689,7 @@ pub(super) trait InteractivelyFunded<SP: Deref> where SP::Target: SignerProvider
1689
1689
1690
1690
fn is_initiator(&self) -> bool;
1691
1691
1692
+ #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled
1692
1693
fn begin_interactive_funding_tx_construction<ES: Deref>(
1693
1694
&mut self, signer_provider: &SP, entropy_source: &ES, holder_node_id: PublicKey,
1694
1695
extra_input: Option<(TxIn, TransactionU16LenLimited)>,
@@ -1933,12 +1934,14 @@ impl<SP: Deref> InteractivelyFunded<SP> for OutboundV2Channel<SP> where SP::Targ
1933
1934
fn dual_funding_context(&self) -> &DualFundingChannelContext {
1934
1935
&self.dual_funding_context
1935
1936
}
1937
+ #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
1936
1938
fn dual_funding_context_mut(&mut self) -> &mut DualFundingChannelContext {
1937
1939
&mut self.dual_funding_context
1938
1940
}
1939
1941
fn interactive_tx_constructor_mut(&mut self) -> &mut Option<InteractiveTxConstructor> {
1940
1942
&mut self.interactive_tx_constructor
1941
1943
}
1944
+ #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
1942
1945
fn is_initiator(&self) -> bool {
1943
1946
true
1944
1947
}
@@ -4249,6 +4252,7 @@ fn get_v2_channel_reserve_satoshis(channel_value_satoshis: u64, dust_limit_satos
4249
4252
cmp::min(channel_value_satoshis, cmp::max(q, dust_limit_satoshis))
4250
4253
}
4251
4254
4255
+ #[allow(dead_code)] // TODO(dual_funding): Remove once begin_interactive_funding_tx_construction() is used
4252
4256
pub(super) fn maybe_add_funding_change_output<SP: Deref>(signer_provider: &SP, is_initiator: bool,
4253
4257
our_funding_satoshis: u64, funding_inputs_prev_outputs: &Vec<TxOut>,
4254
4258
funding_outputs: &mut Vec<OutputOwned>, funding_feerate_sat_per_1000_weight: u32,
@@ -4343,6 +4347,7 @@ pub(super) struct DualFundingChannelContext {
4343
4347
/// The amount in satoshis we will be contributing to the channel.
4344
4348
pub our_funding_satoshis: u64,
4345
4349
/// 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.
4346
4351
pub their_funding_satoshis: Option<u64>,
4347
4352
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
4348
4353
/// to the current block height to align incentives against fee-sniping.
0 commit comments