@@ -5967,9 +5967,6 @@ pub(super) struct FundingNegotiationContext {
5967
5967
pub is_initiator: bool,
5968
5968
/// The amount in satoshis we will be contributing to the channel.
5969
5969
pub our_funding_contribution: SignedAmount,
5970
- /// The amount in satoshis our counterparty will be contributing to the channel.
5971
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
5972
- pub their_funding_contribution_satoshis: Option<i64>,
5973
5970
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
5974
5971
/// to the current block height to align incentives against fee-sniping.
5975
5972
pub funding_tx_locktime: LockTime,
@@ -10683,7 +10680,6 @@ where
10683
10680
let funding_negotiation_context = FundingNegotiationContext {
10684
10681
is_initiator: true,
10685
10682
our_funding_contribution,
10686
- their_funding_contribution_satoshis: None,
10687
10683
funding_tx_locktime: LockTime::from_consensus(locktime),
10688
10684
funding_feerate_sat_per_1000_weight: funding_feerate_per_kw,
10689
10685
shared_funding_input: Some(prev_funding_input),
@@ -10802,12 +10798,10 @@ where
10802
10798
self.funding.get_value_satoshis(),
10803
10799
);
10804
10800
10805
- let their_funding_contribution_satoshis = msg.funding_contribution_satoshis;
10806
10801
let prev_funding_input = self.funding.to_splice_funding_input();
10807
10802
let funding_negotiation_context = FundingNegotiationContext {
10808
10803
is_initiator: false,
10809
10804
our_funding_contribution,
10810
- their_funding_contribution_satoshis: Some(their_funding_contribution_satoshis),
10811
10805
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
10812
10806
funding_feerate_sat_per_1000_weight: msg.funding_feerate_per_kw,
10813
10807
shared_funding_input: Some(prev_funding_input),
@@ -12506,8 +12500,6 @@ where
12506
12500
let funding_negotiation_context = FundingNegotiationContext {
12507
12501
is_initiator: true,
12508
12502
our_funding_contribution: SignedAmount::from_sat(funding_satoshis as i64),
12509
- // TODO(dual_funding) TODO(splicing) Include counterparty contribution, once that's enabled
12510
- their_funding_contribution_satoshis: None,
12511
12503
funding_tx_locktime,
12512
12504
funding_feerate_sat_per_1000_weight,
12513
12505
shared_funding_input: None,
@@ -12662,7 +12654,6 @@ where
12662
12654
let funding_negotiation_context = FundingNegotiationContext {
12663
12655
is_initiator: false,
12664
12656
our_funding_contribution,
12665
- their_funding_contribution_satoshis: Some(msg.common_fields.funding_satoshis as i64),
12666
12657
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
12667
12658
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
12668
12659
shared_funding_input: None,
0 commit comments