Skip to content

Commit 8213f65

Browse files
committed
Include fees in SpliceContribution docs
How fees are paid for in a SpliceContribution depends on whether it is a SpliceIn or SpliceOut. Include this in its docs for clarification.
1 parent 9fa6e3c commit 8213f65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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)