@@ -21,7 +21,7 @@ void KernelWorker::Do_generic()
2121 // Compute maximum possible target to filter out majority of obviously insufficient hashes
2222 CBigNum bnTargetPerCoinDay;
2323 bnTargetPerCoinDay.SetCompact (nBits);
24- uint256 nMaxTarget = (bnTargetPerCoinDay * bnValueIn * nStakeMaxAge / COIN / nOneDay).getuint256 ();
24+ uint256 nMaxTarget = (bnTargetPerCoinDay * bnValueIn * nStakeMaxAge / nOneDay).getuint256 ();
2525
2626 SHA256_CTX ctx, workerCtx;
2727 // Init new sha256 context and update it
@@ -53,7 +53,7 @@ void KernelWorker::Do_generic()
5353 if (hashProofOfStake[7 ] > nMaxTarget32)
5454 continue ;
5555
56- CBigNum bnCoinDayWeight = bnValueIn * GetWeight ((int64_t )nInputTxTime, (int64_t )nTimeTx) / COIN / nOneDay;
56+ CBigNum bnCoinDayWeight = bnValueIn * GetWeight ((int64_t )nInputTxTime, (int64_t )nTimeTx) / nOneDay;
5757 CBigNum bnTargetProofOfStake = bnCoinDayWeight * bnTargetPerCoinDay;
5858
5959 if (bnTargetProofOfStake >= CBigNum (*pnHashProofOfStake))
@@ -81,7 +81,7 @@ bool ScanKernelBackward(unsigned char *kernel, uint32_t nBits, uint32_t nInputTx
8181 CBigNum bnValueIn (nValueIn);
8282
8383 // Get maximum possible target to filter out the majority of obviously insufficient hashes
84- uint256 nMaxTarget = (bnTargetPerCoinDay * bnValueIn * nStakeMaxAge / COIN / nOneDay).getuint256 ();
84+ uint256 nMaxTarget = (bnTargetPerCoinDay * bnValueIn * nStakeMaxAge / nOneDay).getuint256 ();
8585
8686 SHA256_CTX ctx, workerCtx;
8787 // Init new sha256 context and update it
@@ -110,7 +110,7 @@ bool ScanKernelBackward(unsigned char *kernel, uint32_t nBits, uint32_t nInputTx
110110 if (hashProofOfStake > nMaxTarget)
111111 continue ;
112112
113- CBigNum bnCoinDayWeight = bnValueIn * GetWeight ((int64_t )nInputTxTime, (int64_t )nTimeTx) / COIN / nOneDay;
113+ CBigNum bnCoinDayWeight = bnValueIn * GetWeight ((int64_t )nInputTxTime, (int64_t )nTimeTx) / nOneDay;
114114 CBigNum bnTargetProofOfStake = bnCoinDayWeight * bnTargetPerCoinDay;
115115
116116 if (bnTargetProofOfStake >= CBigNum (hashProofOfStake))
0 commit comments