Skip to content

Commit

Permalink
Update pow.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
asuka431 committed Aug 27, 2021
1 parent cd108d9 commit 4b5a7e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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;
}

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

0 comments on commit 4b5a7e6

Please sign in to comment.