Snapshots: fix for fresh sync (#3748)

This commit is contained in:
Alex Sharov 2022-03-21 14:07:39 +07:00 committed by GitHub
parent ce15968d17
commit 9100e0dc3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -992,7 +992,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
return nil
}
if !cfg.snapshots.SegmentsReady() {
if !cfg.snapshots.SegmentsReady() || cfg.snapshots.SegmentsAvailable() < cfg.snapshotHashesCfg.ExpectBlocks {
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
return err
}

@ -1 +1 @@
Subproject commit cf6e317aa616c2821bb922e383e027561aced193
Subproject commit dfd2c1c3cef7cd4748a824c16a86a36f9eff1c3c