You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
340 B

  1. package rpctest
  2. import (
  3. cfg "github.com/tendermint/tendermint/config"
  4. tmcfg "github.com/tendermint/tendermint/config/tendermint_test"
  5. )
  6. var config cfg.Config = nil
  7. func initConfig() {
  8. cfg.OnConfig(func(newConfig cfg.Config) {
  9. config = newConfig
  10. })
  11. c := tmcfg.GetConfig("")
  12. cfg.ApplyConfig(c) // Notify modules of new config
  13. }