aboutsummaryrefslogtreecommitdiff
path: root/src/txmempool.h
diff options
context:
space:
mode:
authorglozow <gloriajzhao@gmail.com>2021-12-02 11:51:21 +0000
committerglozow <gloriajzhao@gmail.com>2021-12-02 14:45:18 +0000
commitc4efc4db5484910ac33ba41aa76f4e23639d6f33 (patch)
treec657c042b503fd8272edb0dcbba07994058af9b2 /src/txmempool.h
parentb01784f0270dc20f8076ea4e46203c97b40b93ef (diff)
downloadbitcoin-c4efc4db5484910ac33ba41aa76f4e23639d6f33.tar.xz
change TestLockPointValidity to take a const reference
The lockpoints are not changed in this function. There is no reason to pass a pointer.
Diffstat (limited to 'src/txmempool.h')
-rw-r--r--src/txmempool.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h
index c6e08a3ca5..6ba474e228 100644
--- a/src/txmempool.h
+++ b/src/txmempool.h
@@ -53,7 +53,7 @@ struct LockPoints {
/**
* 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);
+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>