diff options
| author | MarcoFalke <[email protected]> | 2020-05-22 16:09:34 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-22 15:53:50 -0400 |
| commit | fa756928c3f455943086051c5fe1d5bb09962248 (patch) | |
| tree | 93ed8e1324b591bdf17e0cdac6488140994025b5 /src/node/coinstats.h | |
| parent | rpc: factor out RpcInterruptionPoint from dumptxoutset (diff) | |
| download | discoin-fa756928c3f455943086051c5fe1d5bb09962248.tar.xz discoin-fa756928c3f455943086051c5fe1d5bb09962248.zip | |
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 a19af0fd1..d9cdaa303 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 |