Skip to content

Commit

Permalink
remove unused Config() method
Browse files Browse the repository at this point in the history
  • Loading branch information
kocubinski committed May 30, 2024
1 parent 05180c1 commit 76b607b
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions server/v2/cometbft/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,18 +154,6 @@ func (s *CometBFTServer[T]) Stop(_ context.Context) error {
}
return nil
}

func (s *CometBFTServer[T]) Config() (any, *viper.Viper) {
v := viper.New()
v.SetConfigFile("???") // TODO: where do we set this
v.SetConfigName("config")
v.SetConfigType("toml")
if err := v.ReadInConfig(); err != nil {
panic(fmt.Errorf("failed to read cometbft config file: %w", err))
}
return nil, nil
}

// returns a function which returns the genesis doc from the genesis file.
func getGenDocProvider(cfg *cmtcfg.Config) func() (node.ChecksummedGenesisDoc, error) {
return func() (node.ChecksummedGenesisDoc, error) {
Expand Down

0 comments on commit 76b607b

Please sign in to comment.