cli: add --db_backend and --db_dir flags to tendermint node cmd (#4235)

Fixes #4234
This commit is contained in:
Prince Sinha
2019-12-11 12:59:57 +04:00
committed by Anton Kaliaev
parent 27b00cf8d1
commit 2b30f02879
2 changed files with 13 additions and 1 deletions
+10
View File
@@ -65,6 +65,16 @@ func AddNodeFlags(cmd *cobra.Command) {
"consensus.create_empty_blocks_interval",
string(config.Consensus.CreateEmptyBlocksInterval),
"The possible interval between empty blocks")
// db flags
cmd.Flags().String(
"db_backend",
config.DBBackend,
"Database backend: goleveldb | cleveldb | boltdb")
cmd.Flags().String(
"db_dir",
config.DBPath,
"Database directory")
}
// NewRunNodeCmd returns the command that allows the CLI to start a node.