From c21cec002c5fcf485193acc612713f091a1ce0c8 Mon Sep 17 00:00:00 2001 From: rigel rozanski Date: Fri, 21 Apr 2017 16:39:50 -0400 Subject: [PATCH] reset fix --- cmd/tendermint/commands/reset_priv_validator.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/tendermint/commands/reset_priv_validator.go b/cmd/tendermint/commands/reset_priv_validator.go index b1fb334bc..4b7d2df49 100644 --- a/cmd/tendermint/commands/reset_priv_validator.go +++ b/cmd/tendermint/commands/reset_priv_validator.go @@ -48,15 +48,15 @@ func ResetAll(c cfg.Config, l log15.Logger) { func ResetPrivValidator(c cfg.Config, l log15.Logger) { // Get PrivValidator var privValidator *types.PrivValidator - privValidatorFile := config.GetString("priv_validator_file") + privValidatorFile := c.GetString("priv_validator_file") if _, err := os.Stat(privValidatorFile); err == nil { privValidator = types.LoadPrivValidator(privValidatorFile) privValidator.Reset() - log.Notice("Reset PrivValidator", "file", privValidatorFile) + l.Notice("Reset PrivValidator", "file", privValidatorFile) } else { privValidator = types.GenPrivValidator() privValidator.SetFile(privValidatorFile) privValidator.Save() - log.Notice("Generated PrivValidator", "file", privValidatorFile) + l.Notice("Generated PrivValidator", "file", privValidatorFile) } }