This commit is contained in:
tequ
2026-06-12 23:08:00 +09:00
parent 6268a1cdbf
commit d972ef1fb8
2 changed files with 4 additions and 0 deletions

View File

@@ -162,10 +162,12 @@ ammLPHolds(
// if something bad does happen the trustline acts as a frozen line.
if (spendableBalance < beast::zero || spendableBalance > amount)
{
// LCOV_EXCL_START
JLOG(j.error())
<< "SpendableBalance has illegal value in accountHolds "
<< spendableBalance;
amount.clear(Issue{currency, ammAccount});
// LCOV_EXCL_STOP
}
else
amount = spendableBalance;

View File

@@ -375,10 +375,12 @@ accountHolds(
// if something bad does happen the trustline acts as a frozen line.
if (spendableBalance < beast::zero || spendableBalance > amount)
{
// LCOV_EXCL_START
JLOG(j.error())
<< "SpendableBalance has illegal value in accountHolds "
<< spendableBalance;
amount.clear(Issue{currency, issuer});
// LCOV_EXCL_STOP
}
else
amount = spendableBalance;