aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-02 20:27:55 +0200
committerMarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz>2023-05-02 20:19:28 +0200
commitfa26e3462a0fb1a9ad116ed58afa6897798f2c24 (patch)
tree22a7a0cda988fe8a2884f52071362bab4143da23 /src
parentfa846ee074822160077f3f7476b2af62a876dec7 (diff)
Avoid dereferencing interruption_point if it is nullptr
Diffstat (limited to 'src')
-rw-r--r--src/kernel/coinstats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/coinstats.cpp b/src/kernel/coinstats.cpp
index 4b75c387a6..527433f45e 100644
--- a/src/kernel/coinstats.cpp
+++ b/src/kernel/coinstats.cpp
@@ -123,7 +123,7 @@ static bool ComputeUTXOStats(CCoinsView* view, CCoinsStats& stats, T hash_obj, c
uint256 prevkey;
std::map<uint32_t, Coin> outputs;
while (pcursor->Valid()) {
- interruption_point();
+ if (interruption_point) interruption_point();
COutPoint key;
Coin coin;
if (pcursor->GetKey(key) && pcursor->GetValue(coin)) {