Commit 1b318cf5 authored by szh's avatar szh

update mysql

parent e3f33325
......@@ -68,7 +68,7 @@ func SyncBlock() {
var wg sync.WaitGroup
for height := processHeight ;height < processHeight + maxDownload;height ++ {
wg.Add(1)
go func(height int64,statList []*models.RaspMinerStat,txsList []*models.RaspMinerTxs) {
go func(height int64) {
defer wg.Done()
stat,txs,err := DealBlock(height)
if err != nil {
......@@ -81,7 +81,8 @@ func SyncBlock() {
logging.Info("DealBlock stat",*stat)
logging.Info("DealBlock txs",*txs)
checkList[height] = height
}(height,statList,txsList)
time.Sleep(time.Millisecond*10)
}(height)
}
//db.SetMainNetHeight(int(processHeight + types.MaxProcessBlocks + 1))
wg.Wait()
......
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