Commit ab8c6a70 authored by szh's avatar szh

add updateBlocks

parent 88e0ca45
...@@ -55,7 +55,7 @@ func SyncBlock() { ...@@ -55,7 +55,7 @@ func SyncBlock() {
startHeight := prev.LocalHeight startHeight := prev.LocalHeight
maxDownload := prev.DownloadHeight maxDownload := prev.DownloadHeight
if lastHeight > startHeight { if lastHeight > startHeight {
if lastHeight - startHeight > prev.DownloadHeight { if lastHeight - startHeight < prev.DownloadHeight {
maxDownload = 1 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