aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2022-01-17 10:24:38 +0000
committerglozow <gloriajzhao@gmail.com>2022-01-18 11:55:15 +0000
commite177fcab3831b6d259da5164cabedcc9e78f6957 (patch)
treeb3740b0ff6c23721dd6b9fba3627e90a323ff7e1 /src/txmempool.h
parentc7cd98c7176800a51e6a6b3634a26b508aa33ff2 (diff)
downloadbitcoin-e177fcab3831b6d259da5164cabedcc9e78f6957.tar.xz
Replace `struct update_lock_points` with lambda
No behavior change. This code was introduced in 5add7a7 before we required C++11, which is why the struct was needed. As we are now using more modern C++ and this is the only place where lockpoints are updated for mempool entries, it is more idiomatic to call `modify` with a lambda. Co-authored-by: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com>
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index 9fc3054e3c..e025dafd91 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -312,16 +312,6 @@ 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 {};