Skip to content

Commit 670b14f

Browse files
committed
model mode boost
1 parent ddd6446 commit 670b14f

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

monitor.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,10 @@ func (m *Monitor) currentBlock() (uint64, error) {
687687
}
688688

689689
func (m *Monitor) skip(i uint64) bool {
690+
if m.srv.Load() != SRV_MODEL {
691+
return false
692+
}
693+
690694
if len(m.ckp.Skips) == 0 || i > m.ckp.Skips[len(m.ckp.Skips)-1].To || i < m.ckp.Skips[0].From {
691695
return false
692696
}

0 commit comments

Comments
 (0)