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