Remove penalty fix

This commit is contained in:
AlphaX-Projects 2024-02-03 19:51:51 +01:00 committed by GitHub
parent 55f941467f
commit 9e001dfc16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -183,18 +183,12 @@ public class RewardShareTransaction extends Transaction {
@Override
public boolean isConfirmableAtHeight(int height) {
final int min = BlockChain.getInstance().getPenaltyFixHeight() - 50;
final int max = BlockChain.getInstance().getPenaltyFixHeight() + 50;
if (height >= BlockChain.getInstance().getUnconfirmableRewardSharesHeight()) {
// Not confirmable in online accounts or distribution blocks
if (Block.isOnlineAccountsBlock(height) || Block.isBatchRewardDistributionBlock(height)) {
return false;
}
}
// Not confirmable on penalty fix
if (height > min && height < max) {
return false;
}
return true;
}