chore: Apply clang-format width 100 (#6387)

This commit is contained in:
Ayaz Salikhov
2026-02-19 23:30:00 +00:00
parent 25cca46553
commit 2c1fad1023
786 changed files with 26105 additions and 12252 deletions

View File

@@ -69,9 +69,14 @@ class Discrepancy_test : public beast::unit_test::suite
env.close();
test::PathSet payPaths{
test::Path{A2["JPY"], A2}, test::Path{XRP, A2["JPY"], A2}, test::Path{A6, XRP, A2["JPY"], A2}};
test::Path{A2["JPY"], A2},
test::Path{XRP, A2["JPY"], A2},
test::Path{A6, XRP, A2["JPY"], A2}};
env(pay(A1, A1, A2["JPY"](1000)), json(payPaths.json()), txflags(tfPartialPayment), sendmax(A3["CNY"](56)));
env(pay(A1, A1, A2["JPY"](1000)),
json(payPaths.json()),
txflags(tfPartialPayment),
sendmax(A3["CNY"](56)));
env.close();
Json::Value jrq2;
@@ -96,14 +101,18 @@ class Discrepancy_test : public beast::unit_test::suite
if (node && node[sfLedgerEntryType.fieldName] == jss::AccountRoot)
{
Json::Value prevFields = node.isMember(sfPreviousFields.fieldName) ? node[sfPreviousFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value finalFields = node.isMember(sfFinalFields.fieldName) ? node[sfFinalFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value prevFields = node.isMember(sfPreviousFields.fieldName)
? node[sfPreviousFields.fieldName]
: node[sfNewFields.fieldName];
Json::Value finalFields = node.isMember(sfFinalFields.fieldName)
? node[sfFinalFields.fieldName]
: node[sfNewFields.fieldName];
if (prevFields)
sumPrev += beast::lexicalCastThrow<std::uint64_t>(prevFields[sfBalance.fieldName].asString());
sumPrev += beast::lexicalCastThrow<std::uint64_t>(
prevFields[sfBalance.fieldName].asString());
if (finalFields)
sumFinal += beast::lexicalCastThrow<std::uint64_t>(finalFields[sfBalance.fieldName].asString());
sumFinal += beast::lexicalCastThrow<std::uint64_t>(
finalFields[sfBalance.fieldName].asString());
}
}
// the difference in balances (final and prev) should be the