mirror of
https://github.com/kaspanet/kaspad.git
synced 2025-06-07 06:36:46 +00:00
Reset windowExpectedEndTime after each window (#1407)
This commit is contained in:
parent
ce348373c6
commit
cc49b1826a
@ -64,6 +64,7 @@ func mineLoop(client *minerClient, numberOfBlocks uint64, targetBlocksPerSecond
|
|||||||
time.Sleep(deviation)
|
time.Sleep(deviation)
|
||||||
}
|
}
|
||||||
blockInWindowIndex = 0
|
blockInWindowIndex = 0
|
||||||
|
windowExpectedEndTime = time.Now().Add(expectedDurationForWindow)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user