Commit 3e8fb915 authored by szh's avatar szh

upate reset node

parent 528064a3
......@@ -9,7 +9,6 @@ import (
"os"
"os/exec"
"time"
"path"
)
var (
......@@ -289,7 +288,7 @@ func resetNode() error {
if isrun {
return errors.New("bty is running")
}
err = os.RemoveAll(fmt.Sprintf("%s/datadir", path.Dir(btyPath)))
err = os.RemoveAll(fmt.Sprintf("%s/datadir", btyPath))
if err != nil {
return err
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment