Skip to content

Commit

Permalink
fix gateway itest: no chainindexer for lite nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Oct 31, 2024
1 parent cd1778c commit 55bbe7a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions node/builder_chain.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,10 @@ func ConfigFullNode(c interface{}) Option {
Override(ConsensusReporterKey, modules.RunConsensusFaultReporter(cfg.FaultReporter)),
),

ApplyIf(isLiteNode,
Override(new(full.ChainIndexerAPI), func() full.ChainIndexerAPI { return nil }),
),

ApplyIf(isFullNode,
Override(new(index.Indexer), modules.ChainIndexer(cfg.ChainIndexer)),
Override(new(full.ChainIndexerAPI), modules.ChainIndexHandler(cfg.ChainIndexer)),
Expand Down

0 comments on commit 55bbe7a

Please sign in to comment.