Commit 4d0d5402 authored by szh's avatar szh

add rollback interface

parent e4b023a4
......@@ -578,6 +578,7 @@ func Rollback(c *gin.Context) {
if (pai.LocalLastHeight - 1000) <= 0 {
rollheight = 1
}
time.Sleep(time.Second * 2)
tlog.Info("rollback start","height",pai.LocalLastHeight,"rollbackheight",rollheight)
var buf bytes.Buffer
cmd := exec.Command("v7-bityuan", "-rollback",fmt.Sprintf("%d",rollheight))
......
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