Reset windowExpectedEndTime after each window (#1407)

This commit is contained in:
Ori Newman 2021-01-12 21:34:26 +02:00 committed by GitHub
parent ce348373c6
commit cc49b1826a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -64,6 +64,7 @@ func mineLoop(client *minerClient, numberOfBlocks uint64, targetBlocksPerSecond
time.Sleep(deviation)
}
blockInWindowIndex = 0
windowExpectedEndTime = time.Now().Add(expectedDurationForWindow)
}
}