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

Name

Description

blockman

The block manager to query.

chain

The active chain to measure against.

Created with MrDocs