diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-10 18:04:08 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-06-10 18:04:38 +0200 |
commit | eba2f061a02573b62792614260181c615f753225 (patch) | |
tree | e4d1c77b552f20b1ae545dbba259842536c86777 /src/main.h | |
parent | 1fea667216e1ab8008945580beae3adb46c52448 (diff) | |
parent | eb837199a06293ea541171bdc4652591c6506921 (diff) |
Merge pull request #6061
eb83719 Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs (Jorge Timón)
Diffstat (limited to 'src/main.h')
-rw-r--r-- | src/main.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h index abaedae207..7eaf58d716 100644 --- a/src/main.h +++ b/src/main.h @@ -487,4 +487,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 |