Changeset View
Changeset View
Standalone View
Standalone View
src/index/coinstatsindex.h
// Copyright (c) 2020-2021 The Bitcoin Core developers | // Copyright (c) 2020-2021 The Bitcoin Core developers | ||||
// Distributed under the MIT software license, see the accompanying | // Distributed under the MIT software license, see the accompanying | ||||
// file COPYING or http://www.opensource.org/licenses/mit-license.php. | // file COPYING or http://www.opensource.org/licenses/mit-license.php. | ||||
#ifndef BITCOIN_INDEX_COINSTATSINDEX_H | #ifndef BITCOIN_INDEX_COINSTATSINDEX_H | ||||
#define BITCOIN_INDEX_COINSTATSINDEX_H | #define BITCOIN_INDEX_COINSTATSINDEX_H | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <crypto/muhash.h> | #include <crypto/muhash.h> | ||||
#include <flatfile.h> | #include <flatfile.h> | ||||
#include <index/base.h> | #include <index/base.h> | ||||
#include <node/coinstats.h> | #include <node/coinstats.h> | ||||
struct Amount; | struct Amount; | ||||
static constexpr bool DEFAULT_COINSTATSINDEX{false}; | |||||
/** | /** | ||||
* CoinStatsIndex maintains statistics on the UTXO set. | * CoinStatsIndex maintains statistics on the UTXO set. | ||||
*/ | */ | ||||
class CoinStatsIndex final : public BaseIndex { | class CoinStatsIndex final : public BaseIndex { | ||||
private: | private: | ||||
std::string m_name; | std::string m_name; | ||||
std::unique_ptr<BaseIndex::DB> m_db; | std::unique_ptr<BaseIndex::DB> m_db; | ||||
▲ Show 20 Lines • Show All 44 Lines • Show Last 20 Lines |