From 6e662337ffadd85cb635139b95e5cf20b822cf74 Mon Sep 17 00:00:00 2001 From: Rigel Rozanski Date: Mon, 10 Apr 2017 12:59:43 -0400 Subject: [PATCH] dont export resetPrivValidator --- cmd/tendermint/commands/reset_priv_validator.go | 9 +++++---- glide.lock | 5 +++++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/cmd/tendermint/commands/reset_priv_validator.go b/cmd/tendermint/commands/reset_priv_validator.go index c880e8313..a611935bb 100644 --- a/cmd/tendermint/commands/reset_priv_validator.go +++ b/cmd/tendermint/commands/reset_priv_validator.go @@ -36,17 +36,18 @@ func resetAll(cmd *cobra.Command, args []string) { // XXX: this is totally unsafe. // it's only suitable for testnets. func resetPrivValidator(cmd *cobra.Command, args []string) { - ResetPrivValidator(config, log) + resetPrivValidatorLocal(config, log) } // Exported so other CLI tools can use it func ResetAll(c *viper.Viper, l log15.Logger) { - ResetPrivValidator(c, l) - os.RemoveAll(c.GetString("db_dir")) + resetPrivValidatorLocal(c, l) + dataDir := c.GetString("db_dir") + os.RemoveAll(dataDir) l.Notice("Removed all data", "dir", dataDir) } -func ResetPrivValidator(c *viper.Viper, l log15.Logger) { +func resetPrivValidatorLocal(c *viper.Viper, l log15.Logger) { // Get PrivValidator var privValidator *types.PrivValidator diff --git a/glide.lock b/glide.lock index bc4778927..70da9fac1 100644 --- a/glide.lock +++ b/glide.lock @@ -167,6 +167,11 @@ imports: version: d75a52659825e75fff6158388dddc6a5b04f9ba5 subpackages: - unix +- name: golang.org/x/text + version: f4b4367115ec2de254587813edaa901bc1c723a8 + subpackages: + - transform + - unicode/norm - name: google.golang.org/grpc version: cbcceb2942a489498cf22b2f918536e819d33f0a subpackages: