@@ -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),
@@ -10804,12 +10800,10 @@ where
10804
10800
self.funding.get_value_satoshis(),
10805
10801
);
10806
10802
10807
- let their_funding_contribution_satoshis = msg.funding_contribution_satoshis;
10808
10803
let prev_funding_input = self.funding.to_splice_funding_input();
10809
10804
let funding_negotiation_context = FundingNegotiationContext {
10810
10805
is_initiator: false,
10811
10806
our_funding_contribution,
10812
- their_funding_contribution_satoshis: Some(their_funding_contribution_satoshis),
10813
10807
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
10814
10808
funding_feerate_sat_per_1000_weight: msg.funding_feerate_per_kw,
10815
10809
shared_funding_input: Some(prev_funding_input),
@@ -12508,8 +12502,6 @@ where
12508
12502
let funding_negotiation_context = FundingNegotiationContext {
12509
12503
is_initiator: true,
12510
12504
our_funding_contribution: SignedAmount::from_sat(funding_satoshis as i64),
12511
- // TODO(dual_funding) TODO(splicing) Include counterparty contribution, once that's enabled
12512
- their_funding_contribution_satoshis: None,
12513
12505
funding_tx_locktime,
12514
12506
funding_feerate_sat_per_1000_weight,
12515
12507
shared_funding_input: None,
@@ -12664,7 +12656,6 @@ where
12664
12656
let funding_negotiation_context = FundingNegotiationContext {
12665
12657
is_initiator: false,
12666
12658
our_funding_contribution,
12667
- their_funding_contribution_satoshis: Some(msg.common_fields.funding_satoshis as i64),
12668
12659
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
12669
12660
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
12670
12661
shared_funding_input: None,
0 commit comments