We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b991bd8 commit cfd5f81Copy full SHA for cfd5f81
1 file changed
miner/worker.go
@@ -734,6 +734,12 @@ func (w *worker) commitNewWork() {
734
return
735
}
736
737
+ // Recalculate timestamp in case the parent changed while sleeping.
738
+ tstart = time.Now()
739
+ tstamp = tstart.Unix()
740
+ if parent.Time() >= uint64(tstamp) {
741
+ tstamp = int64(parent.Time() + 1)
742
+ }
743
num := parent.Number()
744
header := &types.Header{
745
ParentHash: parent.Hash(),
0 commit comments