@@ -5968,9 +5968,6 @@ pub(super) struct FundingNegotiationContext {
5968
5968
pub is_initiator: bool,
5969
5969
/// The amount in satoshis we will be contributing to the channel.
5970
5970
pub our_funding_contribution: SignedAmount,
5971
- /// The amount in satoshis our counterparty will be contributing to the channel.
5972
- #[allow(dead_code)] // TODO(dual_funding): Remove once contribution to V2 channels is enabled.
5973
- pub their_funding_contribution_satoshis: Option<i64>,
5974
5971
/// The funding transaction locktime suggested by the initiator. If set by us, it is always set
5975
5972
/// to the current block height to align incentives against fee-sniping.
5976
5973
pub funding_tx_locktime: LockTime,
@@ -10691,7 +10688,6 @@ where
10691
10688
let funding_negotiation_context = FundingNegotiationContext {
10692
10689
is_initiator: true,
10693
10690
our_funding_contribution,
10694
- their_funding_contribution_satoshis: None,
10695
10691
funding_tx_locktime: LockTime::from_consensus(locktime),
10696
10692
funding_feerate_sat_per_1000_weight: funding_feerate_per_kw,
10697
10693
shared_funding_input: Some(prev_funding_input),
@@ -10810,12 +10806,10 @@ where
10810
10806
self.funding.get_value_satoshis(),
10811
10807
);
10812
10808
10813
- let their_funding_contribution_satoshis = msg.funding_contribution_satoshis;
10814
10809
let prev_funding_input = self.funding.to_splice_funding_input();
10815
10810
let funding_negotiation_context = FundingNegotiationContext {
10816
10811
is_initiator: false,
10817
10812
our_funding_contribution,
10818
- their_funding_contribution_satoshis: Some(their_funding_contribution_satoshis),
10819
10813
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
10820
10814
funding_feerate_sat_per_1000_weight: msg.funding_feerate_per_kw,
10821
10815
shared_funding_input: Some(prev_funding_input),
@@ -12514,8 +12508,6 @@ where
12514
12508
let funding_negotiation_context = FundingNegotiationContext {
12515
12509
is_initiator: true,
12516
12510
our_funding_contribution: SignedAmount::from_sat(funding_satoshis as i64),
12517
- // TODO(dual_funding) TODO(splicing) Include counterparty contribution, once that's enabled
12518
- their_funding_contribution_satoshis: None,
12519
12511
funding_tx_locktime,
12520
12512
funding_feerate_sat_per_1000_weight,
12521
12513
shared_funding_input: None,
@@ -12670,7 +12662,6 @@ where
12670
12662
let funding_negotiation_context = FundingNegotiationContext {
12671
12663
is_initiator: false,
12672
12664
our_funding_contribution,
12673
- their_funding_contribution_satoshis: Some(msg.common_fields.funding_satoshis as i64),
12674
12665
funding_tx_locktime: LockTime::from_consensus(msg.locktime),
12675
12666
funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
12676
12667
shared_funding_input: None,
0 commit comments