Skip to content

Commit 4c5ec01

Browse files
committed
update +2
1 parent 1e03b6c commit 4c5ec01

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miner/scroll_worker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ func (w *worker) newWork(now time.Time, parentHash common.Hash, reorging bool, r
560560
}
561561
if w.chainConfig.SystemContract != nil && w.chainConfig.SystemContract.RelaxedPeriod {
562562
// system contract with relaxed period uses time.Now() as the header.Time, calculate the deadline
563-
deadline = time.UnixMilli(int64(header.Time*1000 + 500*((header.Number.Uint64()+1)%2+1) + w.chainConfig.SystemContract.Period))
563+
deadline = time.UnixMilli(int64(header.Time*1000 + 500*((header.Number.Uint64()+1)%2) + w.chainConfig.SystemContract.Period))
564564
}
565565

566566
w.current = &work{

0 commit comments

Comments
 (0)