Browse Source

fixes from review

pull/484/head
Ethan Buchman 8 years ago
parent
commit
edd7263f06
2 changed files with 1 additions and 7 deletions
  1. +1
    -2
      cmd/tendermint/commands/root.go
  2. +0
    -5
      node/node.go

+ 1
- 2
cmd/tendermint/commands/root.go View File

@ -9,12 +9,11 @@ import (
)
var (
config *cfg.Config
config = cfg.DefaultConfig()
log = logger.New("module", "main")
)
func init() {
config = cfg.DefaultConfig()
RootCmd.PersistentFlags().String("log_level", config.LogLevel, "Log level")
}


+ 0
- 5
node/node.go View File

@ -74,11 +74,6 @@ func NewNode(config *cfg.Config, privValidator *types.PrivValidator, clientCreat
stateDB := dbm.NewDB("state", config.DBBackend, config.DBDir())
state := sm.GetState(stateDB, config.GenesisFile())
// add the chainid and number of validators to the global config
// TODO: Set ChainID. eg:
// config.Consensus.SetChainID(state.ChainID) // ...
// but actually consensus doesnt need it since the cs has the state ...
// Create the proxyApp, which manages connections (consensus, mempool, query)
// and sync tendermint and the app by replaying any necessary blocks
proxyApp := proxy.NewAppConns(clientCreator, consensus.NewHandshaker(state, blockStore))


Loading…
Cancel
Save