fix: gate paychan claim MPToken invariant relaxation on featureTokenPaychan

This commit is contained in:
Denis Angell
2026-08-25 11:10:39 -04:00
parent 1ac1d40d06
commit c5ae59c4a0

View File

@@ -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) &&