mirror of
https://github.com/mimblewimble/grin.git
synced 2025-02-08 12:21:09 +03:00
Fix strict time progression in miner
This commit is contained in:
parent
083d4564c3
commit
bfb3505183
1 changed files with 2 additions and 2 deletions
|
@ -602,8 +602,8 @@ impl Miner {
|
||||||
// prepare the block header timestamp
|
// prepare the block header timestamp
|
||||||
let mut now_sec = time::get_time().sec;
|
let mut now_sec = time::get_time().sec;
|
||||||
let head_sec = head.timestamp.to_timespec().sec;
|
let head_sec = head.timestamp.to_timespec().sec;
|
||||||
if now_sec == head_sec {
|
if now_sec <= head_sec {
|
||||||
now_sec += 1;
|
now_sec = head_sec + 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// get the difficulty our block should be at
|
// get the difficulty our block should be at
|
||||||
|
|
Loading…
Reference in a new issue