Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
coinstatsindex.cpp File Reference
#include <index/coinstatsindex.h>
#include <arith_uint256.h>
#include <chain.h>
#include <chainparams.h>
#include <coins.h>
#include <common/args.h>
#include <consensus/amount.h>
#include <crypto/muhash.h>
#include <dbwrapper.h>
#include <index/base.h>
#include <index/db_key.h>
#include <interfaces/chain.h>
#include <interfaces/types.h>
#include <kernel/coinstats.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <script/script.h>
#include <serialize.h>
#include <uint256.h>
#include <undo.h>
#include <util/check.h>
#include <util/fs.h>
#include <util/log.h>
#include <validation.h>
#include <compare>
#include <limits>
#include <span>
#include <string>
#include <utility>
#include <vector>
Include dependency graph for coinstatsindex.cpp:

Go to the source code of this file.

Classes

struct  CCoinsStats

Functions

static void ApplyCoinHash (HashWriter &ss, const COutPoint &outpoint, const Coin &coin)
uint64_t GetBogoSize (const CScript &script_pub_key)
void RemoveCoinHash (MuHash3072 &muhash, const COutPoint &outpoint, const Coin &coin)

Variables

static constexpr uint8_t DB_MUHASH {'M'}
std::unique_ptr< CoinStatsIndexg_coin_stats_index
 The global UTXO set hash object.

Function Documentation

◆ ApplyCoinHash()

void kernel::ApplyCoinHash ( HashWriter & ss,
const COutPoint & outpoint,
const Coin & coin )
static

Definition at line 54 of file coinstats.cpp.

Here is the caller graph for this function:

◆ GetBogoSize()

uint64_t kernel::GetBogoSize ( const CScript & script_pub_key)

Definition at line 36 of file coinstats.cpp.

Here is the caller graph for this function:

◆ RemoveCoinHash()

void kernel::RemoveCoinHash ( MuHash3072 & muhash,
const COutPoint & outpoint,
const Coin & coin )

Definition at line 66 of file coinstats.cpp.

Here is the caller graph for this function:

Variable Documentation

◆ DB_MUHASH

uint8_t DB_MUHASH {'M'}
staticconstexpr

Definition at line 43 of file coinstatsindex.cpp.

◆ g_coin_stats_index

std::unique_ptr<CoinStatsIndex> g_coin_stats_index

The global UTXO set hash object.

Definition at line 88 of file coinstatsindex.cpp.