Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 417 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
* Test whether the LockPoints height and time are still valid on the current | * Test whether the LockPoints height and time are still valid on the current | ||||
* chain. | * chain. | ||||
*/ | */ | ||||
bool TestLockPointValidity(const CChain &active_chain, const LockPoints *lp) | bool TestLockPointValidity(const CChain &active_chain, const LockPoints *lp) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* Check if transaction will be BIP 68 final in the next block to be created. | * Check if transaction will be BIP68 final in the next block to be created on | ||||
* | * top of tip. | ||||
* Simulates calling SequenceLocks() with data from the tip of the current | * @param[in] tip Chain tip to check tx sequence locks against. | ||||
* active chain. Optionally stores in LockPoints the resulting height and time | * For example, the tip of the current active chain. | ||||
* @param[in] coins_view Any CCoinsView that provides access to the | |||||
* relevant coins for checking sequence locks. Any CCoinsView can be passed | |||||
* in; it is assumed to be consistent with the tip. | |||||
* Simulates calling SequenceLocks() with data from the tip passed in. | |||||
* Optionally stores in LockPoints the resulting height and time | |||||
* calculated and the hash of the block needed for calculation or skips the | * calculated and the hash of the block needed for calculation or skips the | ||||
* calculation and uses the LockPoints passed in for evaluation. The LockPoints | * calculation and uses the LockPoints passed in for evaluation. The LockPoints | ||||
* should not be considered valid if CheckSequenceLocks returns false. | * should not be considered valid if CheckSequenceLocks returns false. | ||||
* | * | ||||
* See consensus/consensus.h for flag definitions. | * See consensus/consensus.h for flag definitions. | ||||
*/ | */ | ||||
bool CheckSequenceLocks(CChainState &active_chainstate, const CTxMemPool &pool, | bool CheckSequenceLocks(CBlockIndex *tip, const CCoinsView &coins_view, | ||||
const CTransaction &tx, int flags, | const CTransaction &tx, int flags, | ||||
LockPoints *lp = nullptr, | LockPoints *lp = nullptr, | ||||
bool useExistingLockPoints = false) | bool useExistingLockPoints = false); | ||||
EXCLUSIVE_LOCKS_REQUIRED(::cs_main, pool.cs); | |||||
/** | /** | ||||
* Closure representing one script verification. | * Closure representing one script verification. | ||||
* Note that this stores references to the spending transaction. | * Note that this stores references to the spending transaction. | ||||
* | * | ||||
* Note that if pLimitSigChecks is passed, then failure does not imply that | * Note that if pLimitSigChecks is passed, then failure does not imply that | ||||
* scripts have failed. | * scripts have failed. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 915 Lines • Show Last 20 Lines |