Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 15 Lines | |||||
#include <blockfileinfo.h> | #include <blockfileinfo.h> | ||||
#include <blockindexcomparators.h> | #include <blockindexcomparators.h> | ||||
#include <bloom.h> | #include <bloom.h> | ||||
#include <chain.h> | #include <chain.h> | ||||
#include <chainparams.h> | #include <chainparams.h> | ||||
#include <config.h> | #include <config.h> | ||||
#include <consensus/amount.h> | #include <consensus/amount.h> | ||||
#include <consensus/consensus.h> | #include <consensus/consensus.h> | ||||
#include <deploymentstatus.h> | |||||
#include <disconnectresult.h> | #include <disconnectresult.h> | ||||
#include <flatfile.h> | #include <flatfile.h> | ||||
#include <fs.h> | #include <fs.h> | ||||
#include <kernel/chainstatemanager_opts.h> | #include <kernel/chainstatemanager_opts.h> | ||||
#include <kernel/cs_main.h> | #include <kernel/cs_main.h> | ||||
#include <node/blockstorage.h> | #include <node/blockstorage.h> | ||||
#include <policy/packages.h> | #include <policy/packages.h> | ||||
#include <script/script_error.h> | #include <script/script_error.h> | ||||
▲ Show 20 Lines • Show All 1,448 Lines • ▼ Show 20 Lines | public: | ||||
//! If the cleanup succeeds, the caller will need to ensure chainstates are | //! If the cleanup succeeds, the caller will need to ensure chainstates are | ||||
//! reinitialized, since ResetChainstates() will be called before leveldb | //! reinitialized, since ResetChainstates() will be called before leveldb | ||||
//! directories are moved or deleted. | //! directories are moved or deleted. | ||||
//! | //! | ||||
//! @sa node/chainstate:LoadChainstate() | //! @sa node/chainstate:LoadChainstate() | ||||
bool ValidatedSnapshotCleanup() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | bool ValidatedSnapshotCleanup() EXCLUSIVE_LOCKS_REQUIRED(::cs_main); | ||||
}; | }; | ||||
/** Deployment* info via ChainstateManager */ | |||||
template <typename DEP> | |||||
bool DeploymentActiveAfter(const CBlockIndex *pindexPrev, | |||||
const ChainstateManager &chainman, DEP dep) { | |||||
return DeploymentActiveAfter(pindexPrev, chainman.GetConsensus(), dep); | |||||
} | |||||
template <typename DEP> | |||||
bool DeploymentActiveAt(const CBlockIndex &index, | |||||
const ChainstateManager &chainman, DEP dep) { | |||||
return DeploymentActiveAt(index, chainman.GetConsensus(), dep); | |||||
} | |||||
/** | /** | ||||
* Return the expected assumeutxo value for a given height, if one exists. | * Return the expected assumeutxo value for a given height, if one exists. | ||||
* | * | ||||
* @param[in] height Get the assumeutxo value for this height. | * @param[in] height Get the assumeutxo value for this height. | ||||
* | * | ||||
* @returns empty if no assumeutxo configuration exists for the given height. | * @returns empty if no assumeutxo configuration exists for the given height. | ||||
*/ | */ | ||||
const AssumeutxoData *ExpectedAssumeutxo(const int height, | const AssumeutxoData *ExpectedAssumeutxo(const int height, | ||||
const CChainParams ¶ms); | const CChainParams ¶ms); | ||||
#endif // BITCOIN_VALIDATION_H | #endif // BITCOIN_VALIDATION_H |