@@ -5968,9 +5968,6 @@ pub(super) struct FundingNegotiationContext {
59685968 pub is_initiator: bool,
59695969 /// The amount in satoshis we will be contributing to the channel.
59705970 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>,
59745971 /// The funding transaction locktime suggested by the initiator. If set by us, it is always set
59755972 /// to the current block height to align incentives against fee-sniping.
59765973 pub funding_tx_locktime: LockTime,
@@ -10684,7 +10681,6 @@ where
1068410681 let funding_negotiation_context = FundingNegotiationContext {
1068510682 is_initiator: true,
1068610683 our_funding_contribution,
10687- their_funding_contribution_satoshis: None,
1068810684 funding_tx_locktime: LockTime::from_consensus(locktime),
1068910685 funding_feerate_sat_per_1000_weight: funding_feerate_per_kw,
1069010686 shared_funding_input: Some(prev_funding_input),
@@ -10805,12 +10801,10 @@ where
1080510801 self.funding.get_value_satoshis(),
1080610802 );
1080710803
10808- let their_funding_contribution_satoshis = msg.funding_contribution_satoshis;
1080910804 let prev_funding_input = self.funding.to_splice_funding_input();
1081010805 let funding_negotiation_context = FundingNegotiationContext {
1081110806 is_initiator: false,
1081210807 our_funding_contribution,
10813- their_funding_contribution_satoshis: Some(their_funding_contribution_satoshis),
1081410808 funding_tx_locktime: LockTime::from_consensus(msg.locktime),
1081510809 funding_feerate_sat_per_1000_weight: msg.funding_feerate_per_kw,
1081610810 shared_funding_input: Some(prev_funding_input),
@@ -12509,8 +12503,6 @@ where
1250912503 let funding_negotiation_context = FundingNegotiationContext {
1251012504 is_initiator: true,
1251112505 our_funding_contribution: SignedAmount::from_sat(funding_satoshis as i64),
12512- // TODO(dual_funding) TODO(splicing) Include counterparty contribution, once that's enabled
12513- their_funding_contribution_satoshis: None,
1251412506 funding_tx_locktime,
1251512507 funding_feerate_sat_per_1000_weight,
1251612508 shared_funding_input: None,
@@ -12665,7 +12657,6 @@ where
1266512657 let funding_negotiation_context = FundingNegotiationContext {
1266612658 is_initiator: false,
1266712659 our_funding_contribution,
12668- their_funding_contribution_satoshis: Some(msg.common_fields.funding_satoshis as i64),
1266912660 funding_tx_locktime: LockTime::from_consensus(msg.locktime),
1267012661 funding_feerate_sat_per_1000_weight: msg.funding_feerate_sat_per_1000_weight,
1267112662 shared_funding_input: None,
0 commit comments