Skip to content

Commit

Permalink
hint for DMDcoin#96
Browse files Browse the repository at this point in the history
  • Loading branch information
SurfingNerd committed Aug 3, 2021
1 parent 9be6984 commit 537bbd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions contracts/base/BlockRewardHbbftBase.sol
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,8 @@ contract BlockRewardHbbftBase is UpgradeableOwned, IBlockRewardHbbft {

uint256 phaseTransitionTime = stakingContract.startTimeOfNextPhaseTransition();
uint256 currentTimestamp = validatorSetContract.getCurrentTimestamp();

// TODO: Problem occurs here if there are not regular blocks:
// https://github.com/DMDcoin/hbbft-posdao-contracts/issues/96

//we are in a transition to phase 2 if the time for it arrived,
// and we do not have pendingValidators yet.
Expand All @@ -258,7 +259,7 @@ contract BlockRewardHbbftBase is UpgradeableOwned, IBlockRewardHbbft {
if (isPhaseTransition) {
// Choose new validators
validatorSetContract.newValidatorSet();
} else if (currentTimestamp >= stakingContract.stakingFixedEpochEndTime() ) {
} else if (currentTimestamp >= stakingContract.stakingFixedEpochEndTime()) {
validatorSetContract.handleFailedKeyGeneration();
}
}
Expand Down

0 comments on commit 537bbd0

Please sign in to comment.