From 082c5bf099c64e3d27abe9b68a71ce500b693e7e Mon Sep 17 00:00:00 2001 From: glozow Date: Wed, 29 Sep 2021 19:36:01 +0100 Subject: [refactor] pass coinsview and height to check() Removes check's dependency on validation.h --- src/txmempool.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/txmempool.h') 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 -- cgit v1.2.3