aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-06-10 18:04:08 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-06-10 18:04:38 +0200
commiteba2f061a02573b62792614260181c615f753225 (patch)
treee4d1c77b552f20b1ae545dbba259842536c86777 /src/main.h
parent1fea667216e1ab8008945580beae3adb46c52448 (diff)
parenteb837199a06293ea541171bdc4652591c6506921 (diff)
downloadbitcoin-eba2f061a02573b62792614260181c615f753225.tar.xz
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.h7
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