292: Backfill gaps in the recent past on startup when tracking head. #395

Merged
telackey merged 11 commits from telackey/292 into v1.11.6-statediff-v5 2023-06-24 04:04:57 +00:00
Showing only changes of commit d80480df0f - Show all commits

View File

@ -1187,7 +1187,7 @@ func (sds *Service) Backfill() {
func (sds *Service) backfillHeadGap(indexerBlockNumber uint64, chainBlockNumber uint64) {
headGap := chainBlockNumber - indexerBlockNumber
var ch = make(chan uint64, headGap)
for bn := indexerBlockNumber; bn < chainBlockNumber; bn++ {
for bn := indexerBlockNumber; bn <= chainBlockNumber; bn++ {
ch <- bn
}