Up to and including the current block...
This commit is contained in:
parent
99a91b28cd
commit
d80480df0f
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user