|
|
@ -227,6 +227,9 @@ func (s *StagedStreamSync) doSync(downloaderContext context.Context, initSync bo |
|
|
|
return 0, 0, err |
|
|
|
return 0, 0, err |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
s.startSyncing() |
|
|
|
|
|
|
|
defer s.finishSyncing() |
|
|
|
|
|
|
|
|
|
|
|
var estimatedHeight uint64 |
|
|
|
var estimatedHeight uint64 |
|
|
|
if initSync { |
|
|
|
if initSync { |
|
|
|
if h, err := s.estimateCurrentNumber(downloaderContext); err != nil { |
|
|
|
if h, err := s.estimateCurrentNumber(downloaderContext); err != nil { |
|
|
@ -243,9 +246,6 @@ func (s *StagedStreamSync) doSync(downloaderContext context.Context, initSync bo |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
s.startSyncing() |
|
|
|
|
|
|
|
defer s.finishSyncing() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
i := 0 |
|
|
|
i := 0 |
|
|
|
for { |
|
|
|
for { |
|
|
|
i++ |
|
|
|
i++ |
|
|
|