This commit is contained in:
Ben Wilson
2023-07-30 19:33:02 -04:00
parent e38f4e1edc
commit 432f5c4325
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ export class StratumV1ClientStatistics {
const targetDifficulty = difficultyPerSecond * TARGET_SUBMISSION_PER_SECOND;
if (clientDifficulty << 1 < targetDifficulty || clientDifficulty >> 1 > targetDifficulty) {
if ((clientDifficulty * 2) < targetDifficulty || (clientDifficulty / 2) > targetDifficulty) {
return this.nearestPowerOfTwo(targetDifficulty)
}