Bitcoin ABC  0.28.12
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 <optional>
#include <primitives/txid.h>
#include <serialize.h>
#include <util/check.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 TxId &txid, 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 TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
static void node::ApplyHash (MuHash3072 &muhash, const TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
static void node::ApplyStats (CCoinsStats &stats, const TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
template<typename T >
static bool node::ComputeUTXOStats (CCoinsView *view, CCoinsStats &stats, T hash_obj, const std::function< void()> &interruption_point)
 Calculate statistics about the unspent transaction output set. More...
 
std::optional< CCoinsStats > node::ComputeUTXOStats (CoinStatsHashType hash_type, CCoinsView *view, BlockManager &blockman, const std::function< void()> &interruption_point)
 
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)
 
std::optional< CCoinsStats > node::GetUTXOStats (CCoinsView *view, node::BlockManager &blockman, CoinStatsHashType hash_type, const std::function< void()> &interruption_point={}, const CBlockIndex *pindex=nullptr, bool index_requested=true)
 Calculate statistics about the unspent transaction output set. More...