mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
clang-format
This commit is contained in:
committed by
Richard Holland
parent
d42d965908
commit
5f091922c6
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user