mirror of
https://github.com/XRPLF/rippled.git
synced 2026-07-27 09:00:32 +00:00
clean up
This commit is contained in:
@@ -948,8 +948,7 @@ checkCreateMPT(
|
||||
beast::Journal j)
|
||||
{
|
||||
XRPL_ASSERT(
|
||||
reserveCtx.accountID == holder,
|
||||
"xrpl::checkCreateMPTWithReserve : reserve context matches holder");
|
||||
reserveCtx.accountID == holder, "xrpl::checkCreateMPT : reserve context matches holder");
|
||||
|
||||
if (mptIssue.getIssuer() == holder)
|
||||
return tesSUCCESS;
|
||||
|
||||
@@ -274,7 +274,7 @@ public:
|
||||
|
||||
// Not applicable for payment
|
||||
static TER
|
||||
checkCreateMPT(ApplyView&, DebtDirection)
|
||||
checkCreateMPTForStep(ApplyView&, DebtDirection)
|
||||
{
|
||||
return tesSUCCESS;
|
||||
}
|
||||
@@ -322,7 +322,7 @@ public:
|
||||
|
||||
// Can be created in rev or fwd (if limiting step) direction.
|
||||
TER
|
||||
checkCreateMPT(ApplyView& view, DebtDirection srcDebtDir);
|
||||
checkCreateMPTForStep(ApplyView& view, DebtDirection srcDebtDir);
|
||||
};
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
@@ -401,7 +401,7 @@ MPTEndpointOfferCrossingStep::check(StrandContext const& ctx, SLE::const_ref)
|
||||
}
|
||||
|
||||
TER
|
||||
MPTEndpointOfferCrossingStep::checkCreateMPT(ApplyView& view, xrpl::DebtDirection srcDebtDir)
|
||||
MPTEndpointOfferCrossingStep::checkCreateMPTForStep(ApplyView& view, xrpl::DebtDirection srcDebtDir)
|
||||
{
|
||||
// TakerPays is the last step if offer crossing
|
||||
if (isLast_)
|
||||
@@ -418,7 +418,7 @@ MPTEndpointOfferCrossingStep::checkCreateMPT(ApplyView& view, xrpl::DebtDirectio
|
||||
j_);
|
||||
!isTesSuccess(err))
|
||||
{
|
||||
JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPT: failed create MPT";
|
||||
JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPTForStep: failed create MPT";
|
||||
resetCache(srcDebtDir);
|
||||
return err;
|
||||
}
|
||||
@@ -498,7 +498,7 @@ MPTEndpointStep<TDerived>::revImp(
|
||||
return {beast::kZero, beast::kZero};
|
||||
}
|
||||
|
||||
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPT(sb, srcDebtDir);
|
||||
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPTForStep(sb, srcDebtDir);
|
||||
!isTesSuccess(err))
|
||||
return {beast::kZero, beast::kZero};
|
||||
|
||||
@@ -629,7 +629,7 @@ MPTEndpointStep<TDerived>::fwdImp(
|
||||
return {beast::kZero, beast::kZero};
|
||||
}
|
||||
|
||||
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPT(sb, srcDebtDir);
|
||||
if (auto const err = static_cast<TDerived*>(this)->checkCreateMPTForStep(sb, srcDebtDir);
|
||||
!isTesSuccess(err))
|
||||
return {beast::kZero, beast::kZero};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user