lnwallet: clarify-available-commitment-balance-message [skip ci]

This commit is contained in:
Mohamed Awnallah 2023-12-20 18:29:25 +02:00
parent 5cb4811e86
commit e16efd6f08
No known key found for this signature in database
GPG key ID: 5D55706029E9B87E

View file

@ -8366,11 +8366,11 @@ func (lc *LightningChannel) availableCommitmentBalance(view *htlcView,
if theirBalance < commitFeeWithHtlc && ourBalance >= nonDustHtlcAmt {
// see https://github.com/lightning/bolts/issues/728
ourReportedBalance := nonDustHtlcAmt - 1
lc.log.Infof("Reducing local balance (from %v to %v): "+
"remote side does not have enough funds (%v < %v) to "+
"pay for non-dust HTLC in case of unilateral close.",
ourBalance, ourReportedBalance, theirBalance,
commitFeeWithHtlc)
lc.log.Infof("Reducing local (reported) balance "+
"(from %v to %v): remote side does not have enough "+
"funds (%v < %v) to pay for non-dust HTLC in case of "+
"unilateral close.", ourBalance, ourReportedBalance,
theirBalance, commitFeeWithHtlc)
ourBalance = ourReportedBalance
}