Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 27 Lines | |||||
#include <versionbits.h> | #include <versionbits.h> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <map> | #include <map> | ||||
#include <memory> | #include <memory> | ||||
#include <optional> | #include <optional> | ||||
#include <set> | #include <set> | ||||
#include <string> | |||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
class BlockValidationState; | class BlockValidationState; | ||||
class CBlockIndex; | class CBlockIndex; | ||||
class CBlockTreeDB; | class CBlockTreeDB; | ||||
class CBlockUndo; | class CBlockUndo; | ||||
class CChainParams; | class CChainParams; | ||||
▲ Show 20 Lines • Show All 124 Lines • ▼ Show 20 Lines | |||||
/** Pruning-related variables and constants */ | /** Pruning-related variables and constants */ | ||||
/** True if any block files have ever been pruned. */ | /** True if any block files have ever been pruned. */ | ||||
extern bool fHavePruned; | extern bool fHavePruned; | ||||
/** True if we're running in -prune mode. */ | /** True if we're running in -prune mode. */ | ||||
extern bool fPruneMode; | extern bool fPruneMode; | ||||
/** Number of MiB of block files that we're trying to stay below. */ | /** Number of MiB of block files that we're trying to stay below. */ | ||||
extern uint64_t nPruneTarget; | extern uint64_t nPruneTarget; | ||||
/** Documentation for argument 'checklevel'. */ | |||||
extern const std::vector<std::string> CHECKLEVEL_DOC; | |||||
class BlockValidationOptions { | class BlockValidationOptions { | ||||
private: | private: | ||||
uint64_t excessiveBlockSize; | uint64_t excessiveBlockSize; | ||||
bool checkPoW : 1; | bool checkPoW : 1; | ||||
bool checkMerkleRoot : 1; | bool checkMerkleRoot : 1; | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 1,074 Lines • Show Last 20 Lines |