diff options
author | Carl Dong <contact@carldong.me> | 2020-09-16 17:40:00 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-18 14:49:10 -0500 |
commit | 71734c65dc491a4bb654ccbb7a1dd0e12131cee4 (patch) | |
tree | 96da01e7a131140c02a2085711ec8b17ec927493 /src/txmempool.cpp | |
parent | 120aaba9ac41af71a760aa0969dd090e96786fb3 (diff) |
validation: Pass in chain to ::TestLockPointValidity
Diffstat (limited to 'src/txmempool.cpp')
-rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 197cd6cd4b..031077fa75 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -511,7 +511,7 @@ void CTxMemPool::removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMem for (indexed_transaction_set::const_iterator it = mapTx.begin(); it != mapTx.end(); it++) { const CTransaction& tx = it->GetTx(); LockPoints lp = it->GetLockPoints(); - bool validLP = TestLockPointValidity(&lp); + bool validLP = TestLockPointValidity(::ChainActive(), &lp); if (!CheckFinalTx(::ChainActive().Tip(), tx, flags) || !CheckSequenceLocks(::ChainstateActive(), *this, tx, flags, &lp, validLP)) { // Note if CheckSequenceLocks fails the LockPoints may still be invalid // So it's critical that we remove the tx and not depend on the LockPoints. |