diff --git a/src/txmempool.h b/src/txmempool.h --- a/src/txmempool.h +++ b/src/txmempool.h @@ -322,6 +322,15 @@ } }; +struct update_lock_points { + explicit update_lock_points(const LockPoints &_lp) : lp(_lp) {} + + void operator()(CTxMemPoolEntry &e) { e.UpdateLockPoints(lp); } + +private: + const LockPoints &lp; +}; + // Multi_index tag names struct descendant_score {}; struct entry_time {}; diff --git a/src/txmempool.cpp b/src/txmempool.cpp --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -73,15 +73,6 @@ Amount feeDelta; }; -struct update_lock_points { - explicit update_lock_points(const LockPoints &_lp) : lp(_lp) {} - - void operator()(CTxMemPoolEntry &e) { e.UpdateLockPoints(lp); } - -private: - const LockPoints &lp; -}; - bool TestLockPointValidity(const CChain &active_chain, const LockPoints &lp) { AssertLockHeld(cs_main); // If there are relative lock times then the maxInputBlock will be set