diff options
author | glozow <gloriajzhao@gmail.com> | 2021-12-03 18:00:00 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-12-06 15:29:59 +0000 |
commit | b6002b07a36f0d58dc6becd04bfcf78599056b7c (patch) | |
tree | cea819b0b8513da2761e194c39b90afb989e360a /src/txmempool.h | |
parent | d20d6ac545159fb98bd9ac828678ddf20f5d016d (diff) |
MOVEONLY: update_lock_points to txmempool.h
Diffstat (limited to 'src/txmempool.h')
-rw-r--r-- | src/txmempool.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index f87ecc9cd0..ba1d381a5c 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -312,6 +312,16 @@ public: } }; +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 {}; |