mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-26 16:40:20 +00:00
fix build issues
This commit is contained in:
@@ -158,6 +158,7 @@ authorizeMPToken(
|
||||
std::optional<AccountID> holderID)
|
||||
{
|
||||
auto& view = ctx.view;
|
||||
auto const tx = ctx.tx;
|
||||
auto const sleAcct = view.peek(keylet::account(account));
|
||||
if (!sleAcct)
|
||||
return tecINTERNAL; // LCOV_EXCL_LINE
|
||||
@@ -213,7 +214,7 @@ authorizeMPToken(
|
||||
if (sponsorSle || ownerCount(sleAcct, journal) >= 2)
|
||||
{
|
||||
if (auto const ret = checkInsufficientReserve(
|
||||
view, ctx.tx, sleAcct, priorBalance, sponsorSle, 1, 0, journal);
|
||||
view, tx, sleAcct, priorBalance, sponsorSle, 1, 0, journal);
|
||||
!isTesSuccess(ret))
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -640,6 +640,7 @@ addEmptyHolding(
|
||||
beast::Journal journal)
|
||||
{
|
||||
auto& view = ctx.view;
|
||||
auto const tx = ctx.tx;
|
||||
// Every account can hold XRP. An issuer can issue directly.
|
||||
if (issue.native() || accountID == issue.getIssuer())
|
||||
return tesSUCCESS;
|
||||
@@ -676,7 +677,7 @@ addEmptyHolding(
|
||||
|
||||
// Can the account cover the trust line reserve ?
|
||||
if (auto const ret =
|
||||
checkInsufficientReserve(view, ctx.tx, sleDst, priorBalance, sponsorSle, 1, 0, journal);
|
||||
checkInsufficientReserve(view, tx, sleDst, priorBalance, sponsorSle, 1, 0, journal);
|
||||
!isTesSuccess(ret))
|
||||
return tecNO_LINE_INSUF_RESERVE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user