Up to and including the current block...

This commit is contained in:
Thomas E Lackey 2023-06-22 14:21:09 -05:00
parent 99a91b28cd
commit d80480df0f

View File

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