From 53e2b9693a179d0add569170f4ba0e7696d22b06 Mon Sep 17 00:00:00 2001 From: Ethan Buchman Date: Fri, 21 Apr 2017 12:46:12 -0400 Subject: [PATCH] export ResetAll cmd --- cmd/tendermint/commands/reset_priv_validator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/tendermint/commands/reset_priv_validator.go b/cmd/tendermint/commands/reset_priv_validator.go index 217c387a5..5e3172a52 100644 --- a/cmd/tendermint/commands/reset_priv_validator.go +++ b/cmd/tendermint/commands/reset_priv_validator.go @@ -11,7 +11,7 @@ import ( var resetAllCmd = &cobra.Command{ Use: "unsafe_reset_all", Short: "(unsafe) Remove all the data and WAL, reset this node's validator", - Run: resetAll, + Run: ResetAll, } var resetPrivValidatorCmd = &cobra.Command{ @@ -27,7 +27,7 @@ func init() { // XXX: this is totally unsafe. // it's only suitable for testnets. -func resetAll(cmd *cobra.Command, args []string) { +func ResetAll(cmd *cobra.Command, args []string) { resetPrivValidator(cmd, args) os.RemoveAll(config.GetString("db_dir")) os.Remove(config.GetString("cs_wal_file"))