diff options
author | Carl Dong <contact@carldong.me> | 2020-09-09 16:05:39 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-03 14:49:29 -0500 |
commit | 4744efc9bae8b22efb76152a3c045d054c880399 (patch) | |
tree | b3d06bc93b5fbffc378a1991591210dbeebbc273 /src/txmempool.h | |
parent | 1fb7b2c59505a6b9768789f6caad215a0a22ef16 (diff) | |
download | bitcoin-4744efc9bae8b22efb76152a3c045d054c880399.tar.xz |
validation: Pass in chainstate to CTxMemPool::check
This is the only instance where validation reaches for something outside
of it.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index b8de326737..001d856e43 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -604,7 +604,7 @@ public: * all inputs are in the mapNextTx array). If sanity-checking is turned off, * check does nothing. */ - void check(const CCoinsViewCache *pcoins) const EXCLUSIVE_LOCKS_REQUIRED(::cs_main); + void check(CChainState& active_chainstate) 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 |