| 85 | //! UTXO snapshot to be considered valid. |
| 86 | template <typename T> |
| 87 | static 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 | |
| 96 | static void ApplyStats(CCoinsStats& stats, const std::map<uint32_t, Coin>& outputs) |
| 97 | { |
no test coverage detected