Skip to content

Commit 6d16722

Browse files
committed
f comment on how our_funding_satoshis is derived from our_funding_inputs
1 parent 10114e6 commit 6d16722

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
@@ -3695,6 +3695,10 @@ pub(super) struct DualFundingChannelContext {
36953695
/// The feerate set by the initiator to be used for the funding transaction.
36963696
pub funding_feerate_sat_per_1000_weight: u32,
36973697
/// The funding inputs we will be contributing to the channel.
3698+
///
3699+
/// Note that the `our_funding_satoshis` field is equal to the total value of `our_funding_inputs`
3700+
/// minus any fees paid for our contributed weight. This means that change will never be generated
3701+
/// and the maximum value possible will go towards funding the channel.
36983702
pub our_funding_inputs: Vec<(TxIn, TransactionU16LenLimited)>,
36993703
}
37003704

0 commit comments

Comments
 (0)