glide lock updates

This commit is contained in:
Rigel Rozanski
2017-04-09 23:07:15 -04:00
committed by Ethan Buchman
parent cefb2bede0
commit 270b68a893
3 changed files with 42 additions and 9 deletions

View File

@@ -4,8 +4,8 @@ import (
"os"
"github.com/spf13/cobra"
"github.com/spf13/viper"
cfg "github.com/tendermint/go-config"
"github.com/tendermint/log15"
"github.com/tendermint/tendermint/types"
)
@@ -40,13 +40,14 @@ func resetPrivValidator(cmd *cobra.Command, args []string) {
}
// Exported so other CLI tools can use it
func ResetAll(c cfg.Config, l log15.Logger) {
func ResetAll(c *viper.Viper, l log15.Logger) {
ResetPrivValidator(c, l)
os.RemoveAll(c.GetString("db_dir"))
l.Notice("Removed all data", "dir", dataDir)
}
func ResetPrivValidator(c cfg.Config, l log15.Logger) {
func ResetPrivValidator(c *viper.Viper, l log15.Logger) {
// Get PrivValidator
var privValidator *types.PrivValidator
privValidatorFile := c.GetString("priv_validator_file")