GetPruneHeight

Return height of highest block that has been pruned, or std::nullopt if no blocks have been pruned

Synopsis

Declared in <rpc/blockchain.h>

[[requires_capability(0x7f2e2991bce8)]]
std::optional<int>
GetPruneHeight(
    node::BlockManager const& blockman,
    CChain const& chain);

Return Value

The height of the highest pruned block, or std::nullopt if none were pruned.

Parameters

NameDescription
blockmanThe block manager to query.
chainThe active chain to measure against.