mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-26 05:27:19 +00:00
--snap.stop: to prevent indexing on stage_header #4335
This commit is contained in:
parent
0d2f77ad2a
commit
ea9e547be5
@ -1140,7 +1140,7 @@ func DownloadAndIndexSnapshotsIfNeed(s *StageState, ctx context.Context, tx kv.R
|
||||
log.Info("[Snapshots] Stat", "blocks", cfg.snapshots.BlocksAvailable(), "alloc", libcommon.ByteCount(m.Alloc), "sys", libcommon.ByteCount(m.Sys))
|
||||
|
||||
// Create .idx files
|
||||
if cfg.snapshots.IndicesMax() < cfg.snapshots.SegmentsMax() {
|
||||
if cfg.snapshots.Cfg().Produce && cfg.snapshots.IndicesMax() < cfg.snapshots.SegmentsMax() {
|
||||
if !cfg.snapshots.SegmentsReady() {
|
||||
return fmt.Errorf("not all snapshot segments are available")
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user