Commit 40116077 authored by szh's avatar szh

update log

parent 8f34a740
...@@ -106,6 +106,8 @@ func SyncBlock() { ...@@ -106,6 +106,8 @@ func SyncBlock() {
} }
if len(txsList) != int(maxDownload) || len(txsList) != len(statList) { if len(txsList) != int(maxDownload) || len(txsList) != len(statList) {
logging.Error("txsList",len(txsList),"txsMap",len(txsMap),"statList",len(statList)) logging.Error("txsList",len(txsList),"txsMap",len(txsMap),"statList",len(statList))
logging.Error(txsList)
logging.Error(txsMap)
panic("exception txs not eq expect") panic("exception txs not eq expect")
} }
err := models.UpdateBlocks(txsMap,statMap,processHeight+maxDownload) err := models.UpdateBlocks(txsMap,statMap,processHeight+maxDownload)
...@@ -113,7 +115,7 @@ func SyncBlock() { ...@@ -113,7 +115,7 @@ func SyncBlock() {
panic(err) panic(err)
} }
prev.LocalHeight += prev.DownloadHeight + 1 prev.LocalHeight += prev.DownloadHeight + 1
logging.Info("startHeight:",processHeight," endHeight:",processHeight+maxDownload) logging.Info("startHeight:",processHeight," endHeight:",processHeight+maxDownload-1)
} }
......
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