diff options
| author | Pieter Wuille <[email protected]> | 2017-02-05 11:58:47 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-02-05 12:08:08 -0800 |
| commit | 923dc447eaa8e017985b2afbbb12dd1283fbea0e (patch) | |
| tree | 140832de7142baf9334e2b51b302fc7ab347ad37 /src/txmempool.cpp | |
| parent | Merge #9671: Fix super-unlikely race introduced in 236618061a445d2cb11e72 (diff) | |
| parent | Add missing mempool lock for CalculateMemPoolAncestors (diff) | |
| download | discoin-923dc447eaa8e017985b2afbbb12dd1283fbea0e.tar.xz discoin-923dc447eaa8e017985b2afbbb12dd1283fbea0e.zip | |
Merge #9578: Add missing mempool lock for CalculateMemPoolAncestors
003cd60 Add missing mempool lock for CalculateMemPoolAncestors (Matt Corallo)
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 a1a37dac7..236527a2b 100644 --- a/src/txmempool.cpp +++ b/src/txmempool.cpp @@ -171,6 +171,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(); |