Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 369 Lines • ▼ Show 20 Lines | CheckInputScripts(const CTransaction &tx, TxValidationState &state, | ||||
const PrecomputedTransactionData &txdata, int &nSigChecksOut) | const PrecomputedTransactionData &txdata, int &nSigChecksOut) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | ||||
TxSigCheckLimiter nSigChecksTxLimiter; | TxSigCheckLimiter nSigChecksTxLimiter; | ||||
return CheckInputScripts(tx, state, view, flags, sigCacheStore, | return CheckInputScripts(tx, state, view, flags, sigCacheStore, | ||||
scriptCacheStore, txdata, nSigChecksOut, | scriptCacheStore, txdata, nSigChecksOut, | ||||
nSigChecksTxLimiter, nullptr, nullptr); | nSigChecksTxLimiter, nullptr, nullptr); | ||||
} | } | ||||
/** Get the BIP9 state for a given deployment at the current tip. */ | |||||
ThresholdState VersionBitsTipState(const Consensus::Params ¶ms, | |||||
Consensus::DeploymentPos pos); | |||||
/** Get the BIP9 state for a given deployment at a given block. */ | |||||
ThresholdState VersionBitsBlockState(const Consensus::Params ¶ms, | |||||
Consensus::DeploymentPos pos, | |||||
const CBlockIndex *pindex); | |||||
/** | |||||
* Get the numerical statistics for the BIP9 state for a given deployment at the | |||||
* current tip. | |||||
*/ | |||||
BIP9Stats VersionBitsTipStatistics(const Consensus::Params ¶ms, | |||||
Consensus::DeploymentPos pos); | |||||
/** | |||||
* Get the block height at which the BIP9 deployment switched into the state for | |||||
* the block building on the current tip. | |||||
*/ | |||||
int VersionBitsTipStateSinceHeight(const Consensus::Params ¶ms, | |||||
Consensus::DeploymentPos pos); | |||||
/** | /** | ||||
* Mark all the coins corresponding to a given transaction inputs as spent. | * Mark all the coins corresponding to a given transaction inputs as spent. | ||||
*/ | */ | ||||
void SpendCoins(CCoinsViewCache &view, const CTransaction &tx, CTxUndo &txundo, | void SpendCoins(CCoinsViewCache &view, const CTransaction &tx, CTxUndo &txundo, | ||||
int nHeight); | int nHeight); | ||||
/** | /** | ||||
* Apply the effects of this transaction on the UTXO set represented by view. | * Apply the effects of this transaction on the UTXO set represented by view. | ||||
▲ Show 20 Lines • Show All 876 Lines • ▼ Show 20 Lines | |||||
/** Please prefer the identical ChainstateManager::ActiveChain */ | /** Please prefer the identical ChainstateManager::ActiveChain */ | ||||
CChain &ChainActive(); | CChain &ChainActive(); | ||||
/** | /** | ||||
* Global variable that points to the active block tree (protected by cs_main) | * Global variable that points to the active block tree (protected by cs_main) | ||||
*/ | */ | ||||
extern std::unique_ptr<CBlockTreeDB> pblocktree; | extern std::unique_ptr<CBlockTreeDB> pblocktree; | ||||
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); | ||||
/** Get block file info entry for one block file */ | /** Get block file info entry for one block file */ | ||||
CBlockFileInfo *GetBlockFileInfo(size_t n); | CBlockFileInfo *GetBlockFileInfo(size_t n); | ||||
Show All 12 Lines |