mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
fix --snap.keepblocks flag use (#4924)
This commit is contained in:
parent
c3777f2820
commit
eb07869065
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user