mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
clang-format and cspell fixes
This commit is contained in:
@@ -1814,18 +1814,15 @@ rippleCreditIOU(
|
||||
auto const ownerCount = sleReceiver->getFieldU32(sfOwnerCount);
|
||||
|
||||
// Trust lines use "owner count < 2" reserve exception
|
||||
XRPAmount const reserve = (ownerCount < 2)
|
||||
? XRPAmount(beast::zero)
|
||||
: view.fees().accountReserve(ownerCount + 1);
|
||||
XRPAmount const reserve =
|
||||
(ownerCount < 2) ? XRPAmount(beast::zero) : view.fees().accountReserve(ownerCount + 1);
|
||||
|
||||
if (sleReceiver->getFieldAmount(sfBalance) < reserve)
|
||||
return tecINSUFFICIENT_RESERVE;
|
||||
|
||||
adjustOwnerCount(view, sleReceiver, 1, j);
|
||||
|
||||
sleRippleState->setFieldU32(
|
||||
sfFlags,
|
||||
uFlags | (bSenderHigh ? lsfLowReserve : lsfHighReserve));
|
||||
sleRippleState->setFieldU32(sfFlags, uFlags | (bSenderHigh ? lsfLowReserve : lsfHighReserve));
|
||||
}
|
||||
|
||||
if (bSenderHigh)
|
||||
|
||||
@@ -625,7 +625,7 @@ class TrustAndBalance_test : public beast::unit_test::suite
|
||||
// rippleCreditIOU returns tecINSUFFICIENT_RESERVE here since
|
||||
// there is not enough balance for the reserve requirement on
|
||||
// 3rd trustline. Unfortunately payment engine somehow does not
|
||||
// propogate this error
|
||||
// propagate this error
|
||||
env(check::cash(ed, checkId, USD(25)));
|
||||
env.close();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user