mirror of
https://github.com/Xahau/xahaud.git
synced 2026-07-29 18:10:12 +00:00
LCOV
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user