From 1b3a11e126b258fba975ed7c452221608f2c5472 Mon Sep 17 00:00:00 2001 From: glozow Date: Tue, 30 Nov 2021 11:21:02 +0000 Subject: MOVEONLY: TestLockPointValidity to txmempool --- src/txmempool.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/txmempool.h') 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 #include +#include #include #include #include @@ -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 // (e.g. a wrapped CTxMemPoolEntry&) -- cgit v1.2.3