Skip to content

Commit

Permalink
allow custom chain confir in stateprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Feb 14, 2023
1 parent 4de1d59 commit 48c2a2d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions explorer/stateprocessor/stateprocessor.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ func GetEpochData(s state.BeaconState, network string, epoch uint64, clClient *b
params.SetActive(params.SepoliaConfig().Copy())
} else if network == "prater" {
params.SetActive(params.PraterConfig().Copy())
} else if strings.HasSuffix(network, ".yml") {
err := params.LoadChainConfigFile(network, nil)
if err != nil {
return nil, err
}
} else {
params.SetActive(params.MainnetConfig().Copy())
}
Expand Down

0 comments on commit 48c2a2d

Please sign in to comment.