mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-04 01:06:48 +00:00
minor fixes
This commit is contained in:
@@ -71,8 +71,8 @@ deleteSLE(ApplyView& view, std::shared_ptr<SLE> const& sleCredential, beast::Jou
|
||||
|
||||
if (isOwner)
|
||||
{
|
||||
auto const sponsor = getLedgerEntryReserveSponsor(view, sleCredential);
|
||||
adjustOwnerCount(view, sleAccount, sponsor, -1, j);
|
||||
auto const sponsorSle = getLedgerEntryReserveSponsor(view, sleCredential);
|
||||
adjustOwnerCount(view, sleAccount, sponsorSle, -1, j);
|
||||
}
|
||||
|
||||
return tesSUCCESS;
|
||||
|
||||
@@ -1518,7 +1518,7 @@ addEmptyHolding(
|
||||
auto const& dstId = accountID;
|
||||
auto const high = srcId > dstId;
|
||||
auto const index = keylet::line(srcId, dstId, currency);
|
||||
auto const sleSrc = view.peek(keylet::account(srcId));
|
||||
auto const sleSrc = view.read(keylet::account(srcId));
|
||||
auto const sleDst = view.peek(keylet::account(dstId));
|
||||
if (!sleDst || !sleSrc)
|
||||
return tefINTERNAL; // LCOV_EXCL_LINE
|
||||
@@ -1536,7 +1536,7 @@ addEmptyHolding(
|
||||
tx,
|
||||
sleDst,
|
||||
priorBalance,
|
||||
sponsorAccountID ? view.peek(keylet::account(*sponsorAccountID))
|
||||
sponsorAccountID ? view.read(keylet::account(*sponsorAccountID))
|
||||
: std::shared_ptr<SLE>(),
|
||||
1);
|
||||
!isTesSuccess(ret))
|
||||
@@ -1571,12 +1571,12 @@ addEmptyHolding(
|
||||
beast::Journal journal)
|
||||
{
|
||||
auto const& mptID = mptIssue.getMptID();
|
||||
auto const mpt = view.peek(keylet::mptIssuance(mptID));
|
||||
auto const mpt = view.read(keylet::mptIssuance(mptID));
|
||||
if (!mpt)
|
||||
return tefINTERNAL; // LCOV_EXCL_LINE
|
||||
if (mpt->isFlag(lsfMPTLocked))
|
||||
return tefINTERNAL; // LCOV_EXCL_LINE
|
||||
if (view.peek(keylet::mptoken(mptID, accountID)))
|
||||
if (view.exists(keylet::mptoken(mptID, accountID)))
|
||||
return tecDUPLICATE;
|
||||
if (accountID == mptIssue.getIssuer())
|
||||
return tesSUCCESS;
|
||||
|
||||
Reference in New Issue
Block a user