Skip to content

Commit

Permalink
Revert "Update pow.cpp"
Browse files Browse the repository at this point in the history
This reverts commit 08a38b5.
  • Loading branch information
asuka431 committed Aug 27, 2021
1 parent 08a38b5 commit cd108d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ unsigned int KimotoGravityWell(const CBlockIndex* pindexLast, const CBlockHeader

arith_uint256 bnNew(PastDifficultyAverage);
if (PastRateActualSeconds != 0 && PastRateTargetSeconds != 0) {
bnNew /= PastRateActualSeconds;
bnNew *= PastRateTargetSeconds;
bnNew *= PastRateActualSeconds;
bnNew /= PastRateTargetSeconds;
}

if (bnNew > UintToArith256(params.powLimit)) {
Expand Down

0 comments on commit cd108d9

Please sign in to comment.