mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
pre-commit run
This commit is contained in:
@@ -642,9 +642,10 @@ TrustSet::doApply()
|
||||
terResult = trustDelete(view(), sleRippleState, uLowAccountID, uHighAccountID, viewJ);
|
||||
}
|
||||
// Reserve is not scaled by load.
|
||||
else if (auto const ret = checkInsufficientReserve(
|
||||
view(), ctx_.tx, sle, preFeeBalance_, txSponsorSle, 0);
|
||||
!freeTrustLine && bReserveIncrease && !isTesSuccess(ret))
|
||||
else if (
|
||||
auto const ret =
|
||||
checkInsufficientReserve(view(), ctx_.tx, sle, preFeeBalance_, txSponsorSle, 0);
|
||||
!freeTrustLine && bReserveIncrease && !isTesSuccess(ret))
|
||||
{
|
||||
JLOG(j_.trace()) << "Delay transaction: Insufficent reserve to "
|
||||
"add trust line.";
|
||||
@@ -672,14 +673,15 @@ TrustSet::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,
|
||||
preFeeBalance_,
|
||||
txSponsorSle,
|
||||
1);
|
||||
!freeTrustLine && !isTesSuccess(ret)) // Reserve is not scaled by load.
|
||||
else if (
|
||||
auto const ret = checkInsufficientReserve(
|
||||
ctx_.view(),
|
||||
ctx_.tx,
|
||||
sle,
|
||||
preFeeBalance_,
|
||||
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.";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include <test/jtx/sponsor.h>
|
||||
|
||||
#include <test/jtx/utility.h>
|
||||
|
||||
#include <xrpl/protocol/Sign.h>
|
||||
|
||||
Reference in New Issue
Block a user