forked from Qortal/qortal
Remove penalty fix
This commit is contained in:
parent
55f941467f
commit
9e001dfc16
@ -183,18 +183,12 @@ public class RewardShareTransaction extends Transaction {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isConfirmableAtHeight(int height) {
|
public boolean isConfirmableAtHeight(int height) {
|
||||||
final int min = BlockChain.getInstance().getPenaltyFixHeight() - 50;
|
|
||||||
final int max = BlockChain.getInstance().getPenaltyFixHeight() + 50;
|
|
||||||
if (height >= BlockChain.getInstance().getUnconfirmableRewardSharesHeight()) {
|
if (height >= BlockChain.getInstance().getUnconfirmableRewardSharesHeight()) {
|
||||||
// Not confirmable in online accounts or distribution blocks
|
// Not confirmable in online accounts or distribution blocks
|
||||||
if (Block.isOnlineAccountsBlock(height) || Block.isBatchRewardDistributionBlock(height)) {
|
if (Block.isOnlineAccountsBlock(height) || Block.isBatchRewardDistributionBlock(height)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Not confirmable on penalty fix
|
|
||||||
if (height > min && height < max) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user