Commit 1d7a34e2 authored by szh's avatar szh

update tx

parent e47a2424
...@@ -24,6 +24,7 @@ func Setup() { ...@@ -24,6 +24,7 @@ func Setup() {
panic(err) panic(err)
} }
} }
logging.Info("start height:",height)
prev.LocalHeight = height prev.LocalHeight = height
prev.SetMainHeight() prev.SetMainHeight()
} }
...@@ -39,7 +40,7 @@ type prevHeight struct { ...@@ -39,7 +40,7 @@ type prevHeight struct {
} }
func SyncBlock() { func SyncBlock() {
logging.Info("init prevheight",prev)
for { for {
var t time.Duration var t time.Duration
prev.lock.Lock() prev.lock.Lock()
......
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