Commit 8f34a740 authored by szh's avatar szh

update

parent 329bf80e
......@@ -59,13 +59,13 @@ func SyncBlock() {
maxDownload = 1
}
//速度模式
for processHeight := startHeight + 1; processHeight <= lastHeight; processHeight += maxDownload + 1 {
for processHeight := startHeight + 1; processHeight <= lastHeight; processHeight += maxDownload {
statMap := make(map[string]*models.RaspMinerStat,0)
txsMap := make(map[int64]*models.RaspMinerTxs,0)
statList := make([]*models.RaspMinerStat,0)
txsList := make([]*models.RaspMinerTxs,0)
var wg sync.WaitGroup
for height := processHeight ;height <= processHeight + maxDownload;height ++ {
for height := processHeight ;height < processHeight + maxDownload;height ++ {
wg.Add(1)
go func(height int64) {
defer wg.Done()
......
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