Commit ab8c6a70 authored by szh's avatar szh

add updateBlocks

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