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 2bf4c91269 - Show all commits

View File

@ -17,6 +17,7 @@
package mocks package mocks
import ( import (
"github.com/ethereum/go-ethereum/statediff/indexer/models"
"math/big" "math/big"
"time" "time"
@ -32,6 +33,14 @@ var _ interfaces.Batch = &batch{}
// StateDiffIndexer is a mock state diff indexer // StateDiffIndexer is a mock state diff indexer
type StateDiffIndexer struct{} type StateDiffIndexer struct{}
func (sdi *StateDiffIndexer) DetectGaps(beginBlock uint64, endBlock uint64) ([]*interfaces.BlockGap, error) {
return nil, nil
}
func (sdi *StateDiffIndexer) CurrentBlock() (*models.HeaderModel, error) {
return nil, nil
}
type batch struct{} type batch struct{}
func (sdi *StateDiffIndexer) HasBlock(hash common.Hash, number uint64) (bool, error) { func (sdi *StateDiffIndexer) HasBlock(hash common.Hash, number uint64) (bool, error) {