mirror of
https://github.com/tendermint/tendermint.git
synced 2026-01-06 13:26:23 +00:00
glide lock updates
This commit is contained in:
committed by
Ethan Buchman
parent
cefb2bede0
commit
270b68a893
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user