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/validation.cpp | |
parent | b01784f0270dc20f8076ea4e46203c97b40b93ef (diff) | |
download | bitcoin-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/validation.cpp')
-rw-r--r-- | src/validation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 1a4837839e..b532888f37 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -357,7 +357,7 @@ void CChainState::MaybeUpdateMempoolForReorg( AssertLockHeld(::cs_main); const CTransaction& tx = it->GetTx(); LockPoints lp = it->GetLockPoints(); - const bool validLP{TestLockPointValidity(m_chain, &lp)}; + const bool validLP{TestLockPointValidity(m_chain, lp)}; CCoinsViewMemPool view_mempool(&CoinsTip(), *m_mempool); if (!CheckFinalTx(m_chain.Tip(), tx, flags) || !CheckSequenceLocks(m_chain.Tip(), view_mempool, tx, flags, &lp, validLP)) { |