We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f09242 commit fc3941dCopy full SHA for fc3941d
miner/worker.go
@@ -434,7 +434,7 @@ func (self *worker) commitNewWork() {
434
tstart := time.Now()
435
parent := self.chain.CurrentBlock()
436
tstamp := tstart.Unix()
437
- if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) != 1 {
+ if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) >= 0 {
438
tstamp = parent.Time().Int64() + 1
439
}
440
// this will ensure we're not going off too far in the future
0 commit comments