fix --snap.keepblocks flag use (#4924)

This commit is contained in:
Alex Sharov 2022-08-04 10:03:39 +07:00 committed by GitHub
parent c3777f2820
commit eb07869065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1032,7 +1032,7 @@ func (br *BlockRetire) RetireBlocks(ctx context.Context, blockFrom, blockTo uint
} }
func (br *BlockRetire) PruneAncientBlocks(tx kv.RwTx) error { func (br *BlockRetire) PruneAncientBlocks(tx kv.RwTx) error {
if !br.snapshots.cfg.KeepBlocks { if br.snapshots.cfg.KeepBlocks {
return nil return nil
} }
currentProgress, err := stages.GetStageProgress(tx, stages.Senders) currentProgress, err := stages.GetStageProgress(tx, stages.Senders)