mirror of
https://github.com/Qortal/qortal.git
synced 2025-02-11 17:55:50 +00:00
ignore level for reward share feature hard fork
This commit is contained in:
parent
a8a8904ebf
commit
70f4ff4fb3
@ -216,7 +216,16 @@ public class Account {
|
|||||||
String myAddress = accountData.getAddress();
|
String myAddress = accountData.getAddress();
|
||||||
|
|
||||||
int blockchainHeight = this.repository.getBlockRepository().getBlockchainHeight();
|
int blockchainHeight = this.repository.getBlockRepository().getBlockchainHeight();
|
||||||
int levelToMint = BlockChain.getInstance().getMinAccountLevelToMint();
|
|
||||||
|
int levelToMint;
|
||||||
|
|
||||||
|
if( blockchainHeight >= BlockChain.getInstance().getIgnoreLevelForRewardShareHeight() ) {
|
||||||
|
levelToMint = 0;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
levelToMint = BlockChain.getInstance().getMinAccountLevelToMint();
|
||||||
|
}
|
||||||
|
|
||||||
int level = accountData.getLevel();
|
int level = accountData.getLevel();
|
||||||
int groupIdToMint = BlockChain.getInstance().getMintingGroupId();
|
int groupIdToMint = BlockChain.getInstance().getMintingGroupId();
|
||||||
int nameCheckHeight = BlockChain.getInstance().getOnlyMintWithNameHeight();
|
int nameCheckHeight = BlockChain.getInstance().getOnlyMintWithNameHeight();
|
||||||
@ -306,6 +315,9 @@ public class Account {
|
|||||||
if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0)
|
if (Account.isFounder(accountData.getFlags()) && accountData.getBlocksMintedPenalty() == 0)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
if( this.repository.getBlockRepository().getBlockchainHeight() >= BlockChain.getInstance().getIgnoreLevelForRewardShareHeight() )
|
||||||
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,7 +91,8 @@ public class BlockChain {
|
|||||||
fixBatchRewardHeight,
|
fixBatchRewardHeight,
|
||||||
adminsReplaceFoundersHeight,
|
adminsReplaceFoundersHeight,
|
||||||
onlineValidationFailSafeHeight,
|
onlineValidationFailSafeHeight,
|
||||||
nullGroupMembershipHeight
|
nullGroupMembershipHeight,
|
||||||
|
ignoreLevelForRewardShareHeight
|
||||||
}
|
}
|
||||||
|
|
||||||
// Custom transaction fees
|
// Custom transaction fees
|
||||||
@ -677,6 +678,10 @@ public class BlockChain {
|
|||||||
return this.featureTriggers.get(FeatureTrigger.nullGroupMembershipHeight.name()).intValue();
|
return this.featureTriggers.get(FeatureTrigger.nullGroupMembershipHeight.name()).intValue();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public int getIgnoreLevelForRewardShareHeight() {
|
||||||
|
return this.featureTriggers.get(FeatureTrigger.ignoreLevelForRewardShareHeight.name()).intValue();
|
||||||
|
}
|
||||||
|
|
||||||
// More complex getters for aspects that change by height or timestamp
|
// More complex getters for aspects that change by height or timestamp
|
||||||
|
|
||||||
public long getRewardAtHeight(int ourHeight) {
|
public long getRewardAtHeight(int ourHeight) {
|
||||||
|
@ -116,7 +116,8 @@
|
|||||||
"fixBatchRewardHeight": 1945900,
|
"fixBatchRewardHeight": 1945900,
|
||||||
"adminsReplaceFoundersHeight": 9999999,
|
"adminsReplaceFoundersHeight": 9999999,
|
||||||
"onlineValidationFailSafeHeight": 9999999,
|
"onlineValidationFailSafeHeight": 9999999,
|
||||||
"nullGroupMembershipHeight": 9999999
|
"nullGroupMembershipHeight": 9999999,
|
||||||
|
"ignoreLevelForRewardShareHeight": 9999999
|
||||||
},
|
},
|
||||||
"checkpoints": [
|
"checkpoints": [
|
||||||
{ "height": 1136300, "signature": "3BbwawEF2uN8Ni5ofpJXkukoU8ctAPxYoFB7whq9pKfBnjfZcpfEJT4R95NvBDoTP8WDyWvsUvbfHbcr9qSZuYpSKZjUQTvdFf6eqznHGEwhZApWfvXu6zjGCxYCp65F4jsVYYJjkzbjmkCg5WAwN5voudngA23kMK6PpTNygapCzXt" }
|
{ "height": 1136300, "signature": "3BbwawEF2uN8Ni5ofpJXkukoU8ctAPxYoFB7whq9pKfBnjfZcpfEJT4R95NvBDoTP8WDyWvsUvbfHbcr9qSZuYpSKZjUQTvdFf6eqznHGEwhZApWfvXu6zjGCxYCp65F4jsVYYJjkzbjmkCg5WAwN5voudngA23kMK6PpTNygapCzXt" }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user