Chainstate::GetPruneRange

Return the start, end of block heights we can prune.

Synopsis

Declared in <validation.h>

std::pair<int, int>
GetPruneRange(int last_height_can_prune) const;

Description

start > end is possible, meaning no blocks can be pruned.

Return Value

The inclusive [start, end]range of prunable block heights.

Parameters

NameDescription
last_height_can_pruneHighest block height eligible for pruning.