diff --git a/turbo/snapshotsync/block_snapshots.go b/turbo/snapshotsync/block_snapshots.go index 04511d14f..714f6ae49 100644 --- a/turbo/snapshotsync/block_snapshots.go +++ b/turbo/snapshotsync/block_snapshots.go @@ -1032,7 +1032,7 @@ func (br *BlockRetire) RetireBlocks(ctx context.Context, blockFrom, blockTo uint } func (br *BlockRetire) PruneAncientBlocks(tx kv.RwTx) error { - if !br.snapshots.cfg.KeepBlocks { + if br.snapshots.cfg.KeepBlocks { return nil } currentProgress, err := stages.GetStageProgress(tx, stages.Senders)