mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
clang-format
This commit is contained in:
@@ -100,13 +100,13 @@ XRPNotCreated::visitEntry(
|
||||
break;
|
||||
case ltPAYCHAN:
|
||||
if (isXRP((*before)[sfAmount]))
|
||||
drops_ -=
|
||||
((*before)[sfAmount] - (*before)[sfBalance]).xrp().drops();
|
||||
drops_ -= ((*before)[sfAmount] - (*before)[sfBalance])
|
||||
.xrp()
|
||||
.drops();
|
||||
break;
|
||||
case ltESCROW:
|
||||
if (isXRP((*before)[sfAmount]))
|
||||
drops_ -=
|
||||
(*before)[sfAmount].xrp().drops();
|
||||
drops_ -= (*before)[sfAmount].xrp().drops();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -122,13 +122,13 @@ XRPNotCreated::visitEntry(
|
||||
break;
|
||||
case ltPAYCHAN:
|
||||
if (!isDelete && isXRP((*after)[sfAmount]))
|
||||
drops_ +=
|
||||
((*after)[sfAmount] - (*after)[sfBalance]).xrp().drops();
|
||||
drops_ += ((*after)[sfAmount] - (*after)[sfBalance])
|
||||
.xrp()
|
||||
.drops();
|
||||
break;
|
||||
case ltESCROW:
|
||||
if (!isDelete && isXRP((*after)[sfAmount]))
|
||||
drops_ +=
|
||||
(*after)[sfAmount].xrp().drops();
|
||||
drops_ += (*after)[sfAmount].xrp().drops();
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
@@ -295,15 +295,15 @@ NoZeroEscrow::finalize(
|
||||
beast::Journal const& j)
|
||||
{
|
||||
// bypass this invariant check for IOU escrows
|
||||
if (bad_ &&
|
||||
rv.rules().enabled(featurePaychanAndEscrowForTokens) &&
|
||||
if (bad_ && rv.rules().enabled(featurePaychanAndEscrowForTokens) &&
|
||||
txn.isFieldPresent(sfTransactionType))
|
||||
{
|
||||
uint16_t tt = txn.getFieldU16(sfTransactionType);
|
||||
if (tt == ttESCROW_CANCEL || tt == ttESCROW_FINISH)
|
||||
return true;
|
||||
|
||||
if (txn.isFieldPresent(sfAmount) && !isXRP(txn.getFieldAmount(sfAmount)))
|
||||
|
||||
if (txn.isFieldPresent(sfAmount) &&
|
||||
!isXRP(txn.getFieldAmount(sfAmount)))
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -948,9 +948,8 @@ trustTransferLockedBalance(
|
||||
|
||||
// yes we can... we will
|
||||
|
||||
auto const finalDstAmt = isIssuer ? dstAmt
|
||||
: flipDstAmt ? -dstAmt
|
||||
: dstAmt;
|
||||
auto const finalDstAmt =
|
||||
isIssuer ? dstAmt : flipDstAmt ? -dstAmt : dstAmt;
|
||||
if constexpr (!dryRun)
|
||||
{
|
||||
// clang-format off
|
||||
@@ -1008,9 +1007,8 @@ trustTransferLockedBalance(
|
||||
if (!isAddable(priorBalance, dstAmt))
|
||||
return tecPRECISION_LOSS;
|
||||
|
||||
finalBalance = isIssuer ? -finalBalance
|
||||
: dstHigh ? -finalBalance
|
||||
: finalBalance;
|
||||
finalBalance =
|
||||
isIssuer ? -finalBalance : dstHigh ? -finalBalance : finalBalance;
|
||||
if constexpr (!dryRun)
|
||||
sleDstLine->setFieldAmount(sfBalance, finalBalance);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user