Avoid dereferencing interruption_point if it is nullptr

This commit is contained in:
MarcoFalke 2023-05-02 20:27:55 +02:00
parent fa846ee074
commit fa26e3462a
No known key found for this signature in database

View file

@ -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)) {