This commit is contained in:
yutianwu
2018-11-30 13:01:36 +08:00
parent e8700152be
commit e255b30c63
2 changed files with 5 additions and 9 deletions
+5
View File
@@ -85,6 +85,11 @@ func testnetFiles(cmd *cobra.Command, args []string) error {
_ = os.RemoveAll(outputDir)
return err
}
err = os.MkdirAll(filepath.Join(nodeDir, "data"), nodeDirPerm)
if err != nil {
_ = os.RemoveAll(outputDir)
return err
}
initFilesWithConfig(config)
-9
View File
@@ -39,15 +39,6 @@ type NodeKey struct {
PrivKey Data `json:"priv_key"`
}
type PrivVal struct {
Address cmn.HexBytes `json:"address"`
LastHeight int64 `json:"last_height"`
LastRound int `json:"last_round"`
LastStep int8 `json:"last_step"`
PubKey Data `json:"pub_key"`
PrivKey Data `json:"priv_key"`
}
type PrivValKey struct {
Address cmn.HexBytes `json:"address"`
PubKey Data `json:"pub_key"`