From c5ae59c4a07a2fbf67672fb43145495c1203c9c5 Mon Sep 17 00:00:00 2001 From: Denis Angell Date: Tue, 25 Aug 2026 11:10:39 -0400 Subject: [PATCH] fix: gate paychan claim MPToken invariant relaxation on featureTokenPaychan --- src/libxrpl/tx/invariants/MPTInvariant.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libxrpl/tx/invariants/MPTInvariant.cpp b/src/libxrpl/tx/invariants/MPTInvariant.cpp index 09a209531a..b71aa5aa5a 100644 --- a/src/libxrpl/tx/invariants/MPTInvariant.cpp +++ b/src/libxrpl/tx/invariants/MPTInvariant.cpp @@ -375,8 +375,10 @@ ValidMPTIssuance::finalize( return true; } - if (tx.getTxnType() == ttPAYCHAN_CLAIM && mptIssuancesCreated_ == 0 && - mptIssuancesDeleted_ == 0 && mptokensDeleted_ == 0 && mptokensCreated_ <= 1) + // A token paychan claim may auto-create the destination's MPToken. + if (rules.enabled(featureTokenPaychan) && txnType == ttPAYCHAN_CLAIM && + mptIssuancesCreated_ == 0 && mptIssuancesDeleted_ == 0 && mptokensDeleted_ == 0 && + mptokensCreated_ <= 1) return true; if (hasPrivilege(tx, MayDeleteMpt) &&