aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-09-29 19:36:01 +0100
committerglozow <gloriajzhao@gmail.com>2021-10-04 15:00:28 +0100
commit082c5bf099c64e3d27abe9b68a71ce500b693e7e (patch)
treede3cef3823de0046834bbf621ba3a32e2b09042d /src/txmempool.h
parented6115f1eae0eb4669601106a9aaff078a2f3a74 (diff)
downloadbitcoin-082c5bf099c64e3d27abe9b68a71ce500b693e7e.tar.xz
[refactor] pass coinsview and height to check()
Removes check's dependency on validation.h
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index 27ee0628a7..a3a11eb72b 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -622,7 +622,7 @@ public:
* all inputs are in the mapNextTx array). If sanity-checking is turned off,
* check does nothing.
*/
- void check(CChainState& active_chainstate) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
+ void check(const CCoinsViewCache& active_coins_tip, int64_t spendheight) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
// addUnchecked must updated state for all ancestors of a given transaction,
// to track size/count of descendant transactions. First version of