diff options
author | glozow <gloriajzhao@gmail.com> | 2021-12-02 11:51:21 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2021-12-02 14:45:18 +0000 |
commit | c4efc4db5484910ac33ba41aa76f4e23639d6f33 (patch) | |
tree | c657c042b503fd8272edb0dcbba07994058af9b2 /src/txmempool.h | |
parent | b01784f0270dc20f8076ea4e46203c97b40b93ef (diff) |
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.h | 2 |
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> |