Commit f9d0f991 authored by szh's avatar szh

unlock 放cronjob方法

parent 7011b73d
......@@ -61,13 +61,6 @@ func main() {
}
tlog.Info("[info] start http server listening ", "port",endPoint)
go func(){
time.Sleep(time.Second*10)
err := app.Unlock()
if err == nil {
//app.AutoOpenTicket()
}
}()
server.ListenAndServe()
select {}
// If you want Graceful Restart, you need a Unix system and download github.com/fvbock/endless
......
......@@ -146,6 +146,13 @@ func CornProcessJob(ticker *time.Ticker){
if !BityuanFlag {//有更新,重置等节点重启操作时 禁止运行,防止冲突
//节点未启动 会调用auto启动
NodeError = getWalletInfo()
//解锁钱包
if NodeError == nil {
err := Unlock()
if err != nil {
tlog.Error("unlock wallet","err",err)
}
}
//升级6.4.0bityuan
updateBityuan640()
}
......
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