diff options
| author | Matt Corallo <[email protected]> | 2017-01-20 18:10:48 -0500 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-01-20 18:11:24 -0500 |
| commit | 003cd60cc3697df25bb9dfa0bae0616a462af7ab (patch) | |
| tree | 43d28b8a59ca284a775dc7e1f41b1d3bd7f810d6 /src/txmempool.cpp | |
| parent | Merge #9512: Fix various things -fsanitize complains about (diff) | |
| download | discoin-003cd60cc3697df25bb9dfa0bae0616a462af7ab.tar.xz discoin-003cd60cc3697df25bb9dfa0bae0616a462af7ab.zip | |
Add missing mempool lock for CalculateMemPoolAncestors
Diffstat (limited to 'src/txmempool.cpp')
| -rw-r--r-- | src/txmempool.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/txmempool.cpp b/src/txmempool.cpp index 5b085f492..34ca3baca 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -173,6 +173,8 @@ void CTxMemPool::UpdateTransactionsFromBlock(const std::vector<uint256> &vHashes bool CTxMemPool::CalculateMemPoolAncestors(const CTxMemPoolEntry &entry, setEntries &setAncestors, uint64_t limitAncestorCount, uint64_t limitAncestorSize, uint64_t limitDescendantCount, uint64_t limitDescendantSize, std::string &errString, bool fSearchForParents /* = true */) const { + LOCK(cs); + setEntries parentHashes; const CTransaction &tx = entry.GetTx(); |