mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 15:39:05 +01:00
Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs
This commit is contained in:
@@ -507,4 +507,11 @@ extern CCoinsViewCache *pcoinsTip;
|
||||
/** Global variable that points to the active block tree (protected by cs_main) */
|
||||
extern CBlockTreeDB *pblocktree;
|
||||
|
||||
/**
|
||||
* Return the spend height, which is one more than the inputs.GetBestBlock().
|
||||
* While checking, GetBestBlock() refers to the parent block. (protected by cs_main)
|
||||
* This is also true for mempool checks.
|
||||
*/
|
||||
int GetSpendHeight(const CCoinsViewCache& inputs);
|
||||
|
||||
#endif // BITCOIN_MAIN_H
|
||||
|
||||
Reference in New Issue
Block a user