Bitcoin Core  22.99.0
P2P Digital Currency
Classes | Enumerations | Functions
coinstats.h File Reference
#include <amount.h>
#include <chain.h>
#include <coins.h>
#include <streams.h>
#include <uint256.h>
#include <cstdint>
#include <functional>
Include dependency graph for coinstats.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CCoinsStats
 

Enumerations

enum  CoinStatsHashType { CoinStatsHashType::HASH_SERIALIZED, CoinStatsHashType::MUHASH, CoinStatsHashType::NONE }
 

Functions

bool GetUTXOStats (CCoinsView *view, BlockManager &blockman, CCoinsStats &stats, const std::function< void()> &interruption_point={}, const CBlockIndex *pindex=nullptr)
 Calculate statistics about the unspent transaction output set. More...
 
uint64_t GetBogoSize (const CScript &script_pub_key)
 
CDataStream TxOutSer (const COutPoint &outpoint, const Coin &coin)
 

Enumeration Type Documentation

◆ CoinStatsHashType

enum CoinStatsHashType
strong
Enumerator
HASH_SERIALIZED 
MUHASH 
NONE 

Definition at line 21 of file coinstats.h.

Function Documentation

◆ GetBogoSize()

uint64_t GetBogoSize ( const CScript script_pub_key)

Definition at line 20 of file coinstats.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetUTXOStats()

bool GetUTXOStats ( CCoinsView view,
BlockManager blockman,
CCoinsStats stats,
const std::function< void()> &  interruption_point = {},
const CBlockIndex pindex = nullptr 
)

Calculate statistics about the unspent transaction output set.

Definition at line 145 of file coinstats.cpp.

Here is the call graph for this function:

◆ TxOutSer()

CDataStream TxOutSer ( const COutPoint outpoint,
const Coin coin 
)

Definition at line 30 of file coinstats.cpp.

Here is the caller graph for this function: