From f0222d9fa63229e5c584f4425e97cad4b0ee49e8 Mon Sep 17 00:00:00 2001 From: Richard Holland Date: Tue, 28 Jan 2025 14:04:40 +1100 Subject: [PATCH] ensure inclusion of ServiceFee field continues to return temMALFORMED until amendment is enabled --- src/ripple/app/tx/impl/Transactor.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/ripple/app/tx/impl/Transactor.cpp b/src/ripple/app/tx/impl/Transactor.cpp index 89f5b2614..2354e09b8 100644 --- a/src/ripple/app/tx/impl/Transactor.cpp +++ b/src/ripple/app/tx/impl/Transactor.cpp @@ -100,6 +100,12 @@ preflight1(PreflightContext const& ctx) return temMALFORMED; } + if (ctx.tx.isFieldPresent(sfServiceFee) && + !ctx.rules.enabled(featureServiceFee)) + { + return temMALFORMED; + } + auto const ret = preflight0(ctx); if (!isTesSuccess(ret)) return ret;