There was an error while loading. Please reload this page.
2 parents 77aca54 + 4b914b9 commit eaf8368Copy full SHA for eaf8368
internal/indexer/indexer.go
@@ -23,8 +23,9 @@ type Domain struct {
23
}
24
25
type Indexer struct {
26
-pipeline *pipeline.Pipeline
27
-domains map[string]Domain
+pipeline *pipeline.Pipeline
+domains map[string]Domain
28
+tipReached bool
29
30
31
// Singleton indexer instance
@@ -43,7 +44,12 @@ func (i *Indexer) Start() error {
43
44
if err := state.GetState().UpdateCursor(status.SlotNumber, status.BlockHash); err != nil {
45
logger.Errorf("failed to update cursor: %s", err)
46
47
+if !i.tipReached && status.TipReached {
48
+i.tipReached = true
49
+logger.Infof("caught up to chain tip")
50
+}
51
}),
52
+input_chainsync.WithBulkMode(true),
53
54
if cfg.Indexer.NetworkMagic > 0 {
55
inputOpts = append(
0 commit comments