Skip to content

Commit 418c606

Browse files
committed
f comment on how our_funding_satoshis is derived from our_funding_inputs
1 parent d81b0f9 commit 418c606

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/channel.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3832,6 +3832,10 @@ pub(super) struct DualFundingChannelContext {
38323832
/// The feerate set by the initiator to be used for the funding transaction.
38333833
pub funding_feerate_sat_per_1000_weight: u32,
38343834
/// The funding inputs we will be contributing to the channel.
3835+
///
3836+
/// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
3837+
/// minus any fees paid for our contributed weight. This means that change will never be generated
3838+
/// and the maximum value possible will go towards funding the channel.
38353839
pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
38363840
}
38373841

0 commit comments

Comments
 (0)