Changeset View
Changeset View
Standalone View
Standalone View
src/validation.h
Show First 20 Lines • Show All 474 Lines • ▼ Show 20 Lines | bool TestLockPointValidity(const CChain &active_chain, const LockPoints *lp) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main); | EXCLUSIVE_LOCKS_REQUIRED(cs_main); | ||||
/** | /** | ||||
* Check if transaction will be BIP68 final in the next block to be created on | * Check if transaction will be BIP68 final in the next block to be created on | ||||
* top of tip. | * top of tip. | ||||
* @param[in] tip Chain tip to check tx sequence locks against. | * @param[in] tip Chain tip to check tx sequence locks against. | ||||
* For example, the tip of the current active chain. | * For example, the tip of the current active chain. | ||||
* @param[in] coins_view Any CCoinsView that provides access to the | * @param[in] coins_view Any CCoinsView that provides access to the | ||||
* relevant coins for checking sequence locks. Any CCoinsView can be passed | * relevant coins for checking sequence locks. For example, it can be a | ||||
* in; it is assumed to be consistent with the tip. | * CCoinsViewCache that isn't connected to anything but contains all the | ||||
* relevant coins, or a CCoinsViewMemPool that is connected to the mempool | |||||
* and chainstate UTXO set. In the latter case, the caller is responsible | |||||
* for holding the appropriate locks to ensure that calls to GetCoin() | |||||
* return correct coins. | |||||
* Simulates calling SequenceLocks() with data from the tip passed in. | * Simulates calling SequenceLocks() with data from the tip passed in. | ||||
* Optionally stores in LockPoints the resulting height and time | * 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. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 927 Lines • Show Last 20 Lines |