Computes aggregate statistics over the UTXO set.

Synopsis

Declared in <kernel/coinstats.h>

std::optional<CCoinsStats>
ComputeUTXOStats(
    CoinStatsHashType hash_type,
    CCoinsViewDB const& view,
    node::BlockManager& blockman,
    std::function<void()> const& interruption_point = {});

Return Value

The computed statistics, or std::nullopt on failure.

Parameters

Name

Description

hash_type

The hashing scheme used to summarize the set.

view

The UTXO database to read from.

blockman

The block manager providing block data.

interruption_point

Callback invoked to allow the computation to be interrupted.

Created with MrDocs