Bitcoin Core  22.99.0
P2P Digital Currency
Namespaces | Functions
coinstats.cpp File Reference
#include <node/coinstats.h>
#include <coins.h>
#include <crypto/muhash.h>
#include <hash.h>
#include <index/coinstatsindex.h>
#include <serialize.h>
#include <uint256.h>
#include <util/overflow.h>
#include <util/system.h>
#include <validation.h>
#include <map>
Include dependency graph for coinstats.cpp:

Go to the source code of this file.

Namespaces

 node
 

Functions

uint64_t node::GetBogoSize (const CScript &script_pub_key)
 
CDataStream node::TxOutSer (const COutPoint &outpoint, const Coin &coin)
 
static void node::ApplyHash (CHashWriter &ss, const uint256 &hash, const std::map< uint32_t, Coin > &outputs)
 Warning: be very careful when changing this! assumeutxo and UTXO snapshot validation commitments are reliant on the hash constructed by this function. More...
 
static void node::ApplyHash (std::nullptr_t, const uint256 &hash, const std::map< uint32_t, Coin > &outputs)
 
static void node::ApplyHash (MuHash3072 &muhash, const uint256 &hash, const std::map< uint32_t, Coin > &outputs)
 
static void node::ApplyStats (CCoinsStats &stats, const uint256 &hash, const std::map< uint32_t, Coin > &outputs)
 
template<typename T >
static bool node::GetUTXOStats (CCoinsView *view, BlockManager &blockman, CCoinsStats &stats, T hash_obj, const std::function< void()> &interruption_point, const CBlockIndex *pindex)
 Calculate statistics about the unspent transaction output set. More...
 
bool node::GetUTXOStats (CCoinsView *view, node::BlockManager &blockman, CCoinsStats &stats, const std::function< void()> &interruption_point={}, const CBlockIndex *pindex=nullptr)
 Calculate statistics about the unspent transaction output set. More...
 
static void node::PrepareHash (CHashWriter &ss, const CCoinsStats &stats)
 
static void node::PrepareHash (MuHash3072 &muhash, CCoinsStats &stats)
 
static void node::PrepareHash (std::nullptr_t, CCoinsStats &stats)
 
static void node::FinalizeHash (CHashWriter &ss, CCoinsStats &stats)
 
static void node::FinalizeHash (MuHash3072 &muhash, CCoinsStats &stats)
 
static void node::FinalizeHash (std::nullptr_t, CCoinsStats &stats)