lnwallet: clarify-available-commitment-balance-message [skip ci]
This commit is contained in:
1 file changed
+5
-5
+5
-5
@@ -8366,11 +8366,11 @@ func (lc *LightningChannel) availableCommitmentBalance(view *htlcView,
|
|||||||
if theirBalance < commitFeeWithHtlc && ourBalance >= nonDustHtlcAmt {
|
if theirBalance < commitFeeWithHtlc && ourBalance >= nonDustHtlcAmt {
|
||||||
// see https://github.com/lightning/bolts/issues/728
|
// see https://github.com/lightning/bolts/issues/728
|
||||||
ourReportedBalance := nonDustHtlcAmt - 1
|
ourReportedBalance := nonDustHtlcAmt - 1
|
||||||
lc.log.Infof("Reducing local balance (from %v to %v): "+
|
lc.log.Infof("Reducing local (reported) balance "+
|
||||||
"remote side does not have enough funds (%v < %v) to "+
|
"(from %v to %v): remote side does not have enough "+
|
||||||
"pay for non-dust HTLC in case of unilateral close.",
|
"funds (%v < %v) to pay for non-dust HTLC in case of "+
|
||||||
ourBalance, ourReportedBalance, theirBalance,
|
"unilateral close.", ourBalance, ourReportedBalance,
|
||||||
commitFeeWithHtlc)
|
theirBalance, commitFeeWithHtlc)
|
||||||
ourBalance = ourReportedBalance
|
ourBalance = ourReportedBalance
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user