Disable fix in order for the chain history to remain valid

This commit is contained in:
AlphaX-Projects 2024-02-02 16:40:00 +01:00 committed by GitHub
parent d579606d2d
commit 4f9a4a2091
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1557,10 +1557,10 @@ public class Block {
SelfSponsorshipAlgoV1Block.processAccountPenalties(this); SelfSponsorshipAlgoV1Block.processAccountPenalties(this);
} }
if (this.blockData.getHeight() == BlockChain.getInstance().getPenaltyFixHeight()) { // Disabled because is fixed
// Apply fix for penalties //if (this.blockData.getHeight() == BlockChain.getInstance().getPenaltyFixHeight()) {
PenaltyFix.processPenaltiesFix(this); // PenaltyFix.processPenaltiesFix(this);
} //}
} }
// We're about to (test-)process a batch of transactions, // We're about to (test-)process a batch of transactions,
@ -1854,10 +1854,10 @@ public class Block {
SelfSponsorshipAlgoV1Block.orphanAccountPenalties(this); SelfSponsorshipAlgoV1Block.orphanAccountPenalties(this);
} }
if (this.blockData.getHeight() == BlockChain.getInstance().getPenaltyFixHeight()) { // Disabled because is fixed
// Revert fix for penalties //if (this.blockData.getHeight() == BlockChain.getInstance().getPenaltyFixHeight()) {
PenaltyFix.orphanPenaltiesFix(this); // PenaltyFix.orphanPenaltiesFix(this);
} //}
// Account levels and block rewards are only processed/orphaned on block reward distribution blocks // Account levels and block rewards are only processed/orphaned on block reward distribution blocks
if (this.isRewardDistributionBlock()) { if (this.isRewardDistributionBlock()) {
@ -2556,4 +2556,4 @@ public class Block {
LOGGER.info(() -> String.format("Unable to log block debugging info: %s", e.getMessage())); LOGGER.info(() -> String.format("Unable to log block debugging info: %s", e.getMessage()));
} }
} }
} }