From 756f3a243d44b32a832d54b42c21f74e53c1b8ae Mon Sep 17 00:00:00 2001 From: kennycud Date: Mon, 30 Dec 2024 18:36:44 -0800 Subject: [PATCH] negate founder effective minting level for admins replace founders hardfork --- src/main/java/org/qortal/account/Account.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/qortal/account/Account.java b/src/main/java/org/qortal/account/Account.java index 99fa5217..daf8ad18 100644 --- a/src/main/java/org/qortal/account/Account.java +++ b/src/main/java/org/qortal/account/Account.java @@ -342,8 +342,13 @@ public class Account { return 0; // Founders are assigned a different effective minting level, as long as they have no penalty - if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0) - return BlockChain.getInstance().getFounderEffectiveMintingLevel(); + if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0) { + + // but only if it is before the admins replace founders hardfork + if( this.repository.getBlockRepository().getBlockchainHeight() < BlockChain.getInstance().getAdminsReplaceFoundersHeight() ) { + return BlockChain.getInstance().getFounderEffectiveMintingLevel(); + } + } return accountData.getLevel(); }