aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorJorge Timón <jtimon@jtimon.cc>2015-04-24 16:45:16 +0200
committerJorge Timón <jtimon@jtimon.cc>2015-06-10 14:07:30 +0200
commiteb837199a06293ea541171bdc4652591c6506921 (patch)
treea25704eaa447286aeed4f4eae66ac32b5cb202de /src/main.h
parentb6ea3bcede1cbbf89486b9d67329e0110c4624ae (diff)
Consensus: Refactor: Separate Consensus::CheckTxInputs and GetSpendHeight in CheckInputs
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 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