@@ -635,25 +635,35 @@ pub enum Balance {
635
635
/// [`Balance::MaybeTimeoutClaimableHTLC`] with their
636
636
/// [`Balance::MaybeTimeoutClaimableHTLC::outbound_payment`] flag set, as well as any dust
637
637
/// HTLCs which would otherwise be represented the same.
638
+ ///
639
+ /// This amount (rounded up to a whole satoshi value) will not be included in `amount_satoshis`.
638
640
outbound_payment_htlc_rounded_msat : u64 ,
639
641
/// The amount of millisatoshis which has been burned to fees from HTLCs which are outbound
640
642
/// from us and are related to a forwarded HTLC. This is the sum of the millisatoshis part
641
643
/// of all HTLCs which are otherwise represented by [`Balance::MaybeTimeoutClaimableHTLC`]
642
644
/// with their [`Balance::MaybeTimeoutClaimableHTLC::outbound_payment`] flag *not* set, as
643
645
/// well as any dust HTLCs which would otherwise be represented the same.
646
+ ///
647
+ /// This amount (rounded up to a whole satoshi value) will not be included in `amount_satoshis`.
644
648
outbound_forwarded_htlc_rounded_msat : u64 ,
645
649
/// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound
646
650
/// to us and for which we know the preimage. This is the sum of the millisatoshis part of
647
651
/// all HTLCs which would be represented by [`Balance::ContentiousClaimable`] on channel
648
652
/// close, but whose current value is included in
649
653
/// [`Balance::ClaimableOnChannelClose::amount_satoshis`], as well as any dust HTLCs which
650
654
/// would otherwise be represented the same.
655
+ ///
656
+ /// This amount (rounded up to a whole satoshi value) will not be included in the counterparty's
657
+ /// `amount_satoshis`.
651
658
inbound_claiming_htlc_rounded_msat : u64 ,
652
659
/// The amount of millisatoshis which has been burned to fees from HTLCs which are inbound
653
660
/// to us and for which we do not know the preimage. This is the sum of the millisatoshis
654
661
/// part of all HTLCs which would be represented by [`Balance::MaybePreimageClaimableHTLC`]
655
662
/// on channel close, as well as any dust HTLCs which would otherwise be represented the
656
663
/// same.
664
+ ///
665
+ /// This amount (rounded up to a whole satoshi value) will not be included in the counterparty's
666
+ /// `amount_satoshis`.
657
667
inbound_htlc_rounded_msat : u64 ,
658
668
} ,
659
669
/// The channel has been closed, and the given balance is ours but awaiting confirmations until
@@ -2403,7 +2413,7 @@ impl<Signer: EcdsaChannelSigner> ChannelMonitor<Signer> {
2403
2413
chan_utils:: commit_tx_fee_sat (
2404
2414
us. current_holder_commitment_tx . feerate_per_kw , nondust_htlc_count,
2405
2415
us. onchain_tx_handler . channel_type_features ( ) )
2406
- } else { 0 } ,
2416
+ } else { 0 } ,
2407
2417
outbound_payment_htlc_rounded_msat,
2408
2418
outbound_forwarded_htlc_rounded_msat,
2409
2419
inbound_claiming_htlc_rounded_msat,
0 commit comments