From ef4cf05250375576217899923ed43ddab879cf31 Mon Sep 17 00:00:00 2001 From: Mayukha Vadari Date: Thu, 2 Jul 2026 16:23:55 -0400 Subject: [PATCH] reduce diff (remove ForStep) --- src/libxrpl/tx/paths/MPTEndpointStep.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/libxrpl/tx/paths/MPTEndpointStep.cpp b/src/libxrpl/tx/paths/MPTEndpointStep.cpp index 8e95564b83..c738c15d64 100644 --- a/src/libxrpl/tx/paths/MPTEndpointStep.cpp +++ b/src/libxrpl/tx/paths/MPTEndpointStep.cpp @@ -275,7 +275,7 @@ public: // Not applicable for payment static TER - checkCreateMPTForStep(ApplyView&, DebtDirection) + checkCreateMPT(ApplyView&, DebtDirection) { return tesSUCCESS; } @@ -323,7 +323,7 @@ public: // Can be created in rev or fwd (if limiting step) direction. TER - checkCreateMPTForStep(ApplyView& view, DebtDirection srcDebtDir); + checkCreateMPT(ApplyView& view, DebtDirection srcDebtDir); }; //------------------------------------------------------------------------------ @@ -402,7 +402,7 @@ MPTEndpointOfferCrossingStep::check(StrandContext const& ctx, SLE::const_ref) } TER -MPTEndpointOfferCrossingStep::checkCreateMPTForStep(ApplyView& view, xrpl::DebtDirection srcDebtDir) +MPTEndpointOfferCrossingStep::checkCreateMPT(ApplyView& view, xrpl::DebtDirection srcDebtDir) { // TakerPays is the last step if offer crossing if (isLast_) @@ -419,7 +419,7 @@ MPTEndpointOfferCrossingStep::checkCreateMPTForStep(ApplyView& view, xrpl::DebtD j_); !isTesSuccess(err)) { - JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPTForStep: failed create MPT"; + JLOG(j_.trace()) << "MPTEndpointStep::checkCreateMPT: failed create MPT"; resetCache(srcDebtDir); return err; } @@ -499,7 +499,7 @@ MPTEndpointStep::revImp( return {beast::kZero, beast::kZero}; } - if (auto const err = static_cast(this)->checkCreateMPTForStep(sb, srcDebtDir); + if (auto const err = static_cast(this)->checkCreateMPT(sb, srcDebtDir); !isTesSuccess(err)) return {beast::kZero, beast::kZero}; @@ -630,7 +630,7 @@ MPTEndpointStep::fwdImp( return {beast::kZero, beast::kZero}; } - if (auto const err = static_cast(this)->checkCreateMPTForStep(sb, srcDebtDir); + if (auto const err = static_cast(this)->checkCreateMPT(sb, srcDebtDir); !isTesSuccess(err)) return {beast::kZero, beast::kZero};