aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authordergoegge <n.goeggi@gmail.com>2023-10-11 14:53:04 +0100
committerdergoegge <n.goeggi@gmail.com>2023-11-21 13:15:44 +0000
commit9e58c5bcd96e7ff2062274868814ccae0626589e (patch)
treeb5aa7606931ec3cac2a5e3ce40421562c8fa48f8 /src/kernel
parentd752349029ec7a76f1fd440db2ec2e458d0f3c99 (diff)
Use Txid in COutpoint
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/coinstats.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/kernel/coinstats.cpp b/src/kernel/coinstats.cpp
index 302638cdbe..ff8a33e804 100644
--- a/src/kernel/coinstats.cpp
+++ b/src/kernel/coinstats.cpp
@@ -89,7 +89,7 @@ static void ApplyCoinHash(std::nullptr_t, const COutPoint& outpoint, const Coin&
//! construction could cause a previously invalid (and potentially malicious)
//! UTXO snapshot to be considered valid.
template <typename T>
-static void ApplyHash(T& hash_obj, const uint256& hash, const std::map<uint32_t, Coin>& outputs)
+static void ApplyHash(T& hash_obj, const Txid& hash, const std::map<uint32_t, Coin>& outputs)
{
for (auto it = outputs.begin(); it != outputs.end(); ++it) {
COutPoint outpoint = COutPoint(hash, it->first);
@@ -118,7 +118,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
std::unique_ptr<CCoinsViewCursor> pcursor(view->Cursor());
assert(pcursor);
- uint256 prevkey;
+ Txid prevkey;
std::map<uint32_t, Coin> outputs;
while (pcursor->Valid()) {
if (interruption_point) interruption_point();