Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 453 Lines • ▼ Show 20 Lines | bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, | ||||
CValidationState &state, const CTransactionRef &tx, | CValidationState &state, const CTransactionRef &tx, | ||||
bool fLimitFree, bool *pfMissingInputs, | bool fLimitFree, bool *pfMissingInputs, | ||||
bool fOverrideMempoolLimit = false, | bool fOverrideMempoolLimit = false, | ||||
const Amount nAbsurdFee = Amount(0)); | const Amount nAbsurdFee = Amount(0)); | ||||
/** Convert CValidationState to a human-readable message for logging */ | /** Convert CValidationState to a human-readable message for logging */ | ||||
std::string FormatStateMessage(const CValidationState &state); | std::string FormatStateMessage(const CValidationState &state); | ||||
/** Get the BIP9 state for a given deployment at the current tip. */ | |||||
ThresholdState VersionBitsTipState(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); | |||||
/** | /** | ||||
* Count ECDSA signature operations the old-fashioned (pre-0.6) way | * Count ECDSA signature operations the old-fashioned (pre-0.6) way | ||||
* @return number of sigops this transaction's outputs will produce when spent | * @return number of sigops this transaction's outputs will produce when spent | ||||
* @see CTransaction::FetchInputs | * @see CTransaction::FetchInputs | ||||
*/ | */ | ||||
uint64_t GetSigOpCountWithoutP2SH(const CTransaction &tx); | uint64_t GetSigOpCountWithoutP2SH(const CTransaction &tx); | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 289 Lines • Show Last 20 Lines |