|
@ -6,6 +6,7 @@ import ( |
|
|
|
|
|
|
|
|
. "github.com/tendermint/go-common" |
|
|
. "github.com/tendermint/go-common" |
|
|
cfg "github.com/tendermint/go-config" |
|
|
cfg "github.com/tendermint/go-config" |
|
|
|
|
|
"github.com/tendermint/go-logger" |
|
|
tmcfg "github.com/tendermint/tendermint/config/tendermint" |
|
|
tmcfg "github.com/tendermint/tendermint/config/tendermint" |
|
|
"github.com/tendermint/tendermint/node" |
|
|
"github.com/tendermint/tendermint/node" |
|
|
"github.com/tendermint/tendermint/version" |
|
|
"github.com/tendermint/tendermint/version" |
|
@ -33,6 +34,9 @@ Commands: |
|
|
config = tmcfg.GetConfig("") |
|
|
config = tmcfg.GetConfig("") |
|
|
parseFlags(config, args[1:]) // Command line overrides
|
|
|
parseFlags(config, args[1:]) // Command line overrides
|
|
|
|
|
|
|
|
|
|
|
|
// set the log level
|
|
|
|
|
|
logger.SetLogLevel(config.GetString("log_level")) |
|
|
|
|
|
|
|
|
switch args[0] { |
|
|
switch args[0] { |
|
|
case "node": |
|
|
case "node": |
|
|
node.RunNode(config) |
|
|
node.RunNode(config) |
|
|