mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
validation: add ChainstateRole
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include <arith_uint256.h>
|
||||
#include <attributes.h>
|
||||
#include <chain.h>
|
||||
#include <kernel/chain.h>
|
||||
#include <consensus/amount.h>
|
||||
#include <deploymentstatus.h>
|
||||
#include <kernel/chainparams.h>
|
||||
@@ -511,6 +512,12 @@ public:
|
||||
ChainstateManager& chainman,
|
||||
std::optional<uint256> from_snapshot_blockhash = std::nullopt);
|
||||
|
||||
//! Return the current role of the chainstate. See `ChainstateManager`
|
||||
//! documentation for a description of the different types of chainstates.
|
||||
//!
|
||||
//! @sa ChainstateRole
|
||||
ChainstateRole GetRole() const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
|
||||
|
||||
/**
|
||||
* Initialize the CoinsViews UTXO set database management data structures. The in-memory
|
||||
* cache is initialized separately.
|
||||
|
||||
Reference in New Issue
Block a user