Computes aggregate statistics over the UTXO set.
Declared in <kernel/coinstats.h>
std::optional<CCoinsStats>
ComputeUTXOStats(
CoinStatsHashType hash_type,
CCoinsViewDB const& view,
node::BlockManager& blockman,
std::function<void()> const& interruption_point = {});
The computed statistics, or std::nullopt on failure.
| 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. |