format SetTrust.cpp

This commit is contained in:
tequ
2026-03-17 17:43:35 +09:00
parent d1eb22b403
commit b9f1c97518

View File

@@ -602,9 +602,10 @@ SetTrust::doApply()
terResult = trustDelete(view(), sleRippleState, uLowAccountID, uHighAccountID, viewJ);
}
// Reserve is not scaled by load.
else if (auto const ret =
checkInsufficientReserve(view(), ctx_.tx, sle, mPriorBalance, txSponsorSle, 0);
!freeTrustLine && bReserveIncrease && !isTesSuccess(ret))
else if (
auto const ret =
checkInsufficientReserve(view(), ctx_.tx, sle, mPriorBalance, txSponsorSle, 0);
!freeTrustLine && bReserveIncrease && !isTesSuccess(ret))
{
JLOG(j_.trace()) << "Delay transaction: Insufficent reserve to "
"add trust line.";
@@ -632,14 +633,15 @@ SetTrust::doApply()
JLOG(j_.trace()) << "Redundant: Setting non-existent ripple line to defaults.";
return tecNO_LINE_REDUNDANT;
}
else if (auto const ret = checkInsufficientReserve(
ctx_.view(),
ctx_.tx,
sle,
mPriorBalance,
txSponsorSle,
1);
!freeTrustLine && !isTesSuccess(ret)) // Reserve is not scaled by load.
else if (
auto const ret = checkInsufficientReserve(
ctx_.view(),
ctx_.tx,
sle,
mPriorBalance,
txSponsorSle,
1);
!freeTrustLine && !isTesSuccess(ret)) // Reserve is not scaled by load.
{
JLOG(j_.trace()) << "Delay transaction: Line does not exist. "
"Insufficent reserve to create line.";