mirror of
https://github.com/XRPLF/rippled.git
synced 2026-09-27 07:26:51 +00:00
fix: gate paychan claim MPToken invariant relaxation on featureTokenPaychan
This commit is contained in:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user