Bitcoin Core  0.19.99
P2P Digital Currency
coinstats.h
Go to the documentation of this file.
1 // Copyright (c) 2010 Satoshi Nakamoto
2 // Copyright (c) 2009-2019 The Bitcoin Core developers
3 // Distributed under the MIT software license, see the accompanying
4 // file COPYING or http://www.opensource.org/licenses/mit-license.php.
5 
6 #ifndef BITCOIN_NODE_COINSTATS_H
7 #define BITCOIN_NODE_COINSTATS_H
8 
9 #include <amount.h>
10 #include <uint256.h>
11 
12 #include <cstdint>
13 
14 class CCoinsView;
15 
17 {
18  int nHeight{0};
20  uint64_t nTransactions{0};
21  uint64_t nTransactionOutputs{0};
22  uint64_t nBogoSize{0};
24  uint64_t nDiskSize{0};
26 
28  uint64_t coins_count{0};
29 };
30 
32 bool GetUTXOStats(CCoinsView* view, CCoinsStats& stats);
33 
34 #endif // BITCOIN_NODE_COINSTATS_H
uint64_t nTransactionOutputs
Definition: coinstats.h:21
uint256 hashBlock
Definition: coinstats.h:19
int nHeight
Definition: coinstats.h:18
uint64_t nTransactions
Definition: coinstats.h:20
uint64_t nDiskSize
Definition: coinstats.h:24
bool GetUTXOStats(CCoinsView *view, CCoinsStats &stats)
Calculate statistics about the unspent transaction output set.
Definition: coinstats.cpp:36
uint64_t nBogoSize
Definition: coinstats.h:22
CAmount nTotalAmount
Definition: coinstats.h:25
uint256 hashSerialized
Definition: coinstats.h:23
int64_t CAmount
Amount in satoshis (Can be negative)
Definition: amount.h:12
Abstract view on the open txout dataset.
Definition: coins.h:154
uint64_t coins_count
The number of coins contained.
Definition: coinstats.h:28
256-bit opaque blob.
Definition: uint256.h:120