Skip to content

Commit

Permalink
Merge #9578: Add missing mempool lock for CalculateMemPoolAncestors
Browse files Browse the repository at this point in the history
003cd60 Add missing mempool lock for CalculateMemPoolAncestors (Matt Corallo)
  • Loading branch information
sipa committed Feb 5, 2017
2 parents 7821db3 + 003cd60 commit 923dc44
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/txmempool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 923dc44

Please sign in to comment.