MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / ApplyHash

Function ApplyHash

src/kernel/coinstats.cpp:87–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85//! UTXO snapshot to be considered valid.
86template <typename T>
87static void ApplyHash(T& hash_obj, const Txid& hash, const std::map<uint32_t, Coin>& outputs)
88{
89 for (auto it = outputs.begin(); it != outputs.end(); ++it) {
90 COutPoint outpoint = COutPoint(hash, it->first);
91 Coin coin = it->second;
92 ApplyCoinHash(hash_obj, outpoint, coin);
93 }
94}
95
96static void ApplyStats(CCoinsStats& stats, const std::map<uint32_t, Coin>& outputs)
97{

Callers 1

ComputeUTXOStatsFunction · 0.85

Calls 4

ApplyCoinHashFunction · 0.85
COutPointClass · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected