Skip to content

Commit 19b5f3c

Browse files
obscurenGustav Simonsson
authored and
Gustav Simonsson
committed
Merge pull request ethereum#1761 from CJentzsch/patch-3
fix block time issue (cherry picked from commit e988545)
1 parent 2d1ea1a commit 19b5f3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ func (self *worker) commitNewWork() {
431431
tstart := time.Now()
432432
parent := self.chain.CurrentBlock()
433433
tstamp := tstart.Unix()
434-
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) != 1 {
434+
if parent.Time().Cmp(new(big.Int).SetInt64(tstamp)) >= 0 {
435435
tstamp = parent.Time().Int64() + 1
436436
}
437437
// this will ensure we're not going off too far in the future

0 commit comments

Comments
 (0)