mirror of
https://github.com/tendermint/tendermint.git
synced 2026-08-20 06:06:15 +00:00
cli: add --db_backend and --db_dir flags to tendermint node cmd (#4235)
Fixes #4234
This commit is contained in:
committed by
Anton Kaliaev
parent
27b00cf8d1
commit
2b30f02879
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user