From eb07869065c8eeee560925e7e123fada2054389a Mon Sep 17 00:00:00 2001 From: Alex Sharov Date: Thu, 4 Aug 2022 10:03:39 +0700 Subject: [PATCH] fix --snap.keepblocks flag use (#4924) --- turbo/snapshotsync/block_snapshots.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)