diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-05-22 16:09:34 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-05-22 15:53:50 -0400 |
commit | fa756928c3f455943086051c5fe1d5bb09962248 (patch) | |
tree | 93ed8e1324b591bdf17e0cdac6488140994025b5 /src/node/coinstats.h | |
parent | fa7fc5a8e0fcf9ca81e84b3631f18ae40502be60 (diff) | |
download | bitcoin-fa756928c3f455943086051c5fe1d5bb09962248.tar.xz |
rpc: Make gettxoutsetinfo/GetUTXOStats interruptible
Also, add interruption points to scantxoutset
Diffstat (limited to 'src/node/coinstats.h')
-rw-r--r-- | src/node/coinstats.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h index a19af0fd1b..d9cdaa3036 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -10,6 +10,7 @@ #include <uint256.h> #include <cstdint> +#include <functional> class CCoinsView; @@ -29,6 +30,6 @@ struct CCoinsStats }; //! Calculate statistics about the unspent transaction output set -bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats); +bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, const std::function<void()>& interruption_point = {}); #endif // BITCOIN_NODE_COINSTATS_H |