Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show All 9 Lines | |||||
#if defined(HAVE_CONFIG_H) | #if defined(HAVE_CONFIG_H) | ||||
#include "config/bitcoin-config.h" | #include "config/bitcoin-config.h" | ||||
#endif | #endif | ||||
#include "amount.h" | #include "amount.h" | ||||
#include "blockfileinfo.h" | #include "blockfileinfo.h" | ||||
#include "coins.h" | #include "coins.h" | ||||
#include "consensus/consensus.h" | #include "consensus/consensus.h" | ||||
#include "consensus/params.h" | |||||
#include "diskblockpos.h" | #include "diskblockpos.h" | ||||
#include "fs.h" | #include "fs.h" | ||||
#include "protocol.h" // For CMessageHeader::MessageMagic | #include "protocol.h" // For CMessageHeader::MessageMagic | ||||
#include "script/script_error.h" | #include "script/script_error.h" | ||||
#include "sync.h" | #include "sync.h" | ||||
#include "versionbits.h" | #include "versionbits.h" | ||||
#include <algorithm> | #include <algorithm> | ||||
#include <atomic> | #include <atomic> | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <exception> | #include <exception> | ||||
#include <map> | #include <map> | ||||
#include <set> | #include <set> | ||||
#include <string> | #include <string> | ||||
#include <utility> | #include <utility> | ||||
#include <vector> | #include <vector> | ||||
class arith_uint256; | |||||
class CBlockIndex; | class CBlockIndex; | ||||
class CBlockTreeDB; | class CBlockTreeDB; | ||||
class CBloomFilter; | class CBloomFilter; | ||||
class CChainParams; | class CChainParams; | ||||
class CChain; | |||||
class CCoinsViewDB; | class CCoinsViewDB; | ||||
class CConnman; | class CConnman; | ||||
class CInv; | class CInv; | ||||
class Config; | class Config; | ||||
class CScriptCheck; | class CScriptCheck; | ||||
class CTxMemPool; | class CTxMemPool; | ||||
class CTxUndo; | class CTxUndo; | ||||
class CValidationInterface; | class CValidationInterface; | ||||
▲ Show 20 Lines • Show All 637 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Return the spend height, which is one more than the inputs.GetBestBlock(). | * Return the spend height, which is one more than the inputs.GetBestBlock(). | ||||
* While checking, GetBestBlock() refers to the parent block. (protected by | * While checking, GetBestBlock() refers to the parent block. (protected by | ||||
* cs_main) | * cs_main) | ||||
* This is also true for mempool checks. | * This is also true for mempool checks. | ||||
*/ | */ | ||||
int GetSpendHeight(const CCoinsViewCache &inputs); | int GetSpendHeight(const CCoinsViewCache &inputs); | ||||
extern VersionBitsCache versionbitscache; | |||||
/** | /** | ||||
* Determine what nVersion a new block should use. | * Determine what nVersion a new block should use. | ||||
*/ | */ | ||||
int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, | int32_t ComputeBlockVersion(const CBlockIndex *pindexPrev, | ||||
const Consensus::Params ¶ms); | const Consensus::Params ¶ms); | ||||
/** | /** | ||||
* Reject codes greater or equal to this can be returned by AcceptToMemPool or | * Reject codes greater or equal to this can be returned by AcceptToMemPool or | ||||
Show All 23 Lines |