mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
negate founder effective minting level for admins replace founders hardfork
This commit is contained in:
parent
950c4a5b35
commit
756f3a243d
@ -342,8 +342,13 @@ public class Account {
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
// Founders are assigned a different effective minting level, as long as they have no penalty
|
// Founders are assigned a different effective minting level, as long as they have no penalty
|
||||||
if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0)
|
if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0) {
|
||||||
return BlockChain.getInstance().getFounderEffectiveMintingLevel();
|
|
||||||
|
// 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();
|
return accountData.getLevel();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user