Skip to content

Commit a18f362

Browse files
authored
Merge pull request #4028 from jkczyz/2025-08-splice-out-fixups
Follow-ups for #3979
2 parents 4f96b35 + 8213f65 commit a18f362

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11134,7 +11134,7 @@ where
1113411134
};
1113511135

1113611136
let our_funding_contribution = funding_negotiation_context.our_funding_contribution;
11137-
debug_assert!(our_funding_contribution <= SignedAmount::MAX_MONEY);
11137+
debug_assert!(our_funding_contribution.abs() <= SignedAmount::MAX_MONEY);
1113811138

1113911139
let their_funding_contribution = SignedAmount::from_sat(msg.funding_contribution_satoshis);
1114011140
self.validate_splice_contribution(their_funding_contribution)?;

lightning/src/ln/funding.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pub enum SpliceContribution {
2424
/// The amount to contribute to the splice.
2525
value: Amount,
2626

27-
/// The inputs included in the splice's funding transaction to meet the contributed amount.
28-
/// Any excess amount will be sent to a change output.
27+
/// The inputs included in the splice's funding transaction to meet the contributed amount
28+
/// plus fees. Any excess amount will be sent to a change output.
2929
inputs: Vec<FundingTxInput>,
3030

3131
/// An optional change output script. This will be used if needed or, when not set,
@@ -35,7 +35,7 @@ pub enum SpliceContribution {
3535
/// When funds are removed from a channel.
3636
SpliceOut {
3737
/// The outputs to include in the splice's funding transaction. The total value of all
38-
/// outputs will be the amount that is removed.
38+
/// outputs plus fees will be the amount that is removed.
3939
outputs: Vec<TxOut>,
4040
},
4141
}

0 commit comments

Comments
 (0)