diff options
author | Fabian Jahr <fjahr@protonmail.com> | 2020-01-24 18:56:47 +0100 |
---|---|---|
committer | Fabian Jahr <fjahr@protonmail.com> | 2021-04-19 20:28:48 +0200 |
commit | dd58a4de21469d6d848ae309edc47f558628221d (patch) | |
tree | 6b914fa5b525d73db702bd454cd7a467fac63a73 /src/node/coinstats.h | |
parent | a8a46c4b3cfda4b95c92a36f8cebd3606377e57d (diff) | |
download | bitcoin-dd58a4de21469d6d848ae309edc47f558628221d.tar.xz |
index: Add Coinstats index
The index holds the values previously calculated in coinstats.cpp
for each block, representing the state of the UTXO set at each
height.
Diffstat (limited to 'src/node/coinstats.h')
-rw-r--r-- | src/node/coinstats.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/node/coinstats.h b/src/node/coinstats.h index 85896a2a1d..826df2fd73 100644 --- a/src/node/coinstats.h +++ b/src/node/coinstats.h @@ -7,6 +7,9 @@ #define BITCOIN_NODE_COINSTATS_H #include <amount.h> +#include <chain.h> +#include <coins.h> +#include <streams.h> #include <uint256.h> #include <cstdint> @@ -42,4 +45,8 @@ struct CCoinsStats //! Calculate statistics about the unspent transaction output set bool GetUTXOStats(CCoinsView* view, BlockManager& blockman, CCoinsStats& stats, const std::function<void()>& interruption_point = {}); +uint64_t GetBogoSize(const CScript& script_pub_key); + +CDataStream TxOutSer(const COutPoint& outpoint, const Coin& coin); + #endif // BITCOIN_NODE_COINSTATS_H |