Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 379 Lines • ▼ Show 20 Lines | |||||
* **/ | * **/ | ||||
bool AcceptToMemoryPool(const Config &config, CTxMemPool &pool, | 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, | ||||
std::list<CTransactionRef> *plTxnReplaced = nullptr, | std::list<CTransactionRef> *plTxnReplaced = nullptr, | ||||
bool fOverrideMempoolLimit = false, | bool fOverrideMempoolLimit = false, | ||||
const CAmount nAbsurdFee = 0); | const CAmount nAbsurdFee = 0); | ||||
/** (try to) add transaction to memory pool with a specified acceptance time **/ | |||||
bool AcceptToMemoryPoolWithTime( | |||||
const Config &config, CTxMemPool &pool, CValidationState &state, | |||||
const CTransactionRef &tx, bool fLimitFree, bool *pfMissingInputs, | |||||
int64_t nAcceptTime, std::list<CTransactionRef> *plTxnReplaced = nullptr, | |||||
bool fOverrideMempoolLimit = false, const CAmount nAbsurdFee = 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. */ | /** Get the BIP9 state for a given deployment at the current tip. */ | ||||
ThresholdState VersionBitsTipState(const Consensus::Params ¶ms, | ThresholdState VersionBitsTipState(const Consensus::Params ¶ms, | ||||
Consensus::DeploymentPos pos); | Consensus::DeploymentPos pos); | ||||
/** Get the block height at which the BIP9 deployment switched into the state | /** Get the block height at which the BIP9 deployment switched into the state | ||||
▲ Show 20 Lines • Show All 302 Lines • Show Last 20 Lines |