diff options
author | glozow <gloriajzhao@gmail.com> | 2021-11-30 11:21:02 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-11-30 11:56:46 +0000 |
commit | 1b3a11e126b258fba975ed7c452221608f2c5472 (patch) | |
tree | cb15b7aebd9f281a7fc41d57c8c6521f40c03762 /src/txmempool.h | |
parent | e521c5589e253b1a6631d085b3ac578751883082 (diff) |
MOVEONLY: TestLockPointValidity to txmempool
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index 85417ac3fc..412c2fbb74 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -14,6 +14,7 @@ #include <utility> #include <vector> +#include <chain.h> #include <coins.h> #include <consensus/amount.h> #include <indirectmap.h> @@ -49,6 +50,11 @@ struct LockPoints { CBlockIndex* maxInputBlock{nullptr}; }; +/** + * Test whether the LockPoints height and time are still valid on the current chain + */ +bool TestLockPointValidity(CChain& active_chain, const LockPoints* lp) EXCLUSIVE_LOCKS_REQUIRED(cs_main); + struct CompareIteratorByHash { // SFINAE for T where T is either a pointer type (e.g., a txiter) or a reference_wrapper<T> // (e.g. a wrapped CTxMemPoolEntry&) |