From eb837199a06293ea541171bdc4652591c6506921 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Tim=C3=B3n?= Date: Fri, 24 Apr 2015 16:45:16 +0200 Subject: Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs --- src/main.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/main.h') diff --git a/src/main.h b/src/main.h index bb6fd6f204..9bc0ff8066 100644 --- a/src/main.h +++ b/src/main.h @@ -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 -- cgit v1.2.3