()
| 190 | } |
| 191 | |
| 192 | func (s *Scanner) blockScanLoopRuntime() *scanLoopRuntime { |
| 193 | return &scanLoopRuntime{ |
| 194 | mode: modeCheckBlock, |
| 195 | nextBatch: s.worker.latestUpdated, |
| 196 | interval: s.cfg.IntervalBlock, |
| 197 | batchSize: uint64(s.cfg.IntervalBlock / s.cfg.L1SlotTime), // number of slots in the interval |
| 198 | nextIndex: 0, |
| 199 | } |
| 200 | } |
| 201 | |
| 202 | func (s *Scanner) startReporter() { |
| 203 | s.wg.Add(1) |