Skip to content

Commit

Permalink
chain indexer must be enabled if ETH RPC is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
aarshkshah1992 committed Oct 15, 2024
1 parent 361d7bf commit f628cb2
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 @@ -179,6 +179,10 @@ func ConfigFullNode(c interface{}) Option {
return Error(xerrors.Errorf("invalid config from repo, got: %T", c))
}

if cfg.Fevm.EnableEthRPC && !cfg.ChainIndexer.EnableIndexer {
return Error(xerrors.New("chain indexer must be enabled if ETH RPC is enabled"))
}

return Options(
ConfigCommon(&cfg.Common, build.NodeUserVersion()),

Expand Down

0 comments on commit f628cb2

Please sign in to comment.