mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-14 06:48:20 +00:00
Snapshots: fix for fresh sync (#3748)
This commit is contained in:
parent
ce15968d17
commit
9100e0dc3c
@ -992,7 +992,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if !cfg.snapshots.SegmentsReady() {
|
if !cfg.snapshots.SegmentsReady() || cfg.snapshots.SegmentsAvailable() < cfg.snapshotHashesCfg.ExpectBlocks {
|
||||||
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
|
if err := WaitForDownloader(ctx, tx, cfg); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit cf6e317aa616c2821bb922e383e027561aced193
|
Subproject commit dfd2c1c3cef7cd4748a824c16a86a36f9eff1c3c
|
Loading…
Reference in New Issue
Block a user