Bitcoin ABC 0.30.7
P2P Digital Currency
Namespaces | Functions
coinstats.cpp File Reference
#include <kernel/coinstats.h>
#include <coins.h>
#include <crypto/muhash.h>
#include <hash.h>
#include <logging.h>
#include <primitives/txid.h>
#include <serialize.h>
#include <util/check.h>
#include <validation.h>
#include <map>
Include dependency graph for coinstats.cpp:

Go to the source code of this file.

Namespaces

namespace  kernel
 

Functions

uint64_t kernel::GetBogoSize (const CScript &script_pub_key)
 
CDataStream kernel::TxOutSer (const COutPoint &outpoint, const Coin &coin)
 
static void kernel::ApplyHash (HashWriter &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 kernel::ApplyHash (std::nullptr_t, const TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
static void kernel::ApplyHash (MuHash3072 &muhash, const TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
static void kernel::ApplyStats (CCoinsStats &stats, const TxId &txid, const std::map< uint32_t, Coin > &outputs)
 
template<typename T >
static bool kernel::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 > kernel::ComputeUTXOStats (CoinStatsHashType hash_type, CCoinsView *view, node::BlockManager &blockman, const std::function< void()> &interruption_point)
 
static void kernel::PrepareHash (HashWriter &ss, const CCoinsStats &stats)
 
static void kernel::PrepareHash (MuHash3072 &muhash, CCoinsStats &stats)
 
static void kernel::PrepareHash (std::nullptr_t, CCoinsStats &stats)
 
static void kernel::FinalizeHash (HashWriter &ss, CCoinsStats &stats)
 
static void kernel::FinalizeHash (MuHash3072 &muhash, CCoinsStats &stats)
 
static void kernel::FinalizeHash (std::nullptr_t, CCoinsStats &stats)