diff options
author | Carl Dong <contact@carldong.me> | 2020-09-16 17:29:10 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-02-18 14:43:28 -0500 |
commit | 4c15942b79c46256950df17c348302679e668ebc (patch) | |
tree | 3d0bdb6012fb8b5a25a4df0b5735d612959dc175 /src/txmempool.cpp | |
parent | 577b774d0c664b891bc9e1550ef179a655a466ad (diff) |
validation: Pass in chainstate to ::CheckSequenceLocks
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 0a5a295bb7..197cd6cd4b 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -512,7 +512,7 @@ void CTxMemPool::removeForReorg(const CCoinsViewCache *pcoins, unsigned int nMem const CTransaction& tx = it->GetTx(); LockPoints lp = it->GetLockPoints(); bool validLP = TestLockPointValidity(&lp); - if (!CheckFinalTx(::ChainActive().Tip(), tx, flags) || !CheckSequenceLocks(*this, tx, flags, &lp, validLP)) { + 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. txToRemove.insert(it); |