diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-06-02 23:52:34 +0200 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2020-06-22 00:55:44 +0200 |
commit | a712cf6f6801157667fcf36d1c498b6fff6d328a (patch) | |
tree | 1ac2dbe3f86e8d04b271fa0c187f522cf963c110 /src/node/coinstats.h | |
parent | 605884ef21318fc3f326dbdf4901cb353ba63fab (diff) |
rpc: gettxoutsetinfo can specify hash_type (only legacy option for now)
Diffstat (limited to 'src/node/coinstats.h')
-rw-r--r-- | src/node/coinstats.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h index d9cdaa3036..1d0270d56d 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -14,6 +14,10 @@ class CCoinsView; +enum class CoinStatsHashType { + HASH_SERIALIZED, +}; + struct CCoinsStats { int nHeight{0}; @@ -30,6 +34,6 @@ struct CCoinsStats }; //! Calculate statistics about the unspent transaction output set -bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, const std::function<void()>& interruption_point = {}); +bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats, const CoinStatsHashType hash_type, const std::function<void()>& interruption_point = {}); #endif // BITCOIN_NODE_COINSTATS_H |