Browse Source

Merge #9578: Add missing mempool lock for CalculateMemPoolAncestors

003cd60 Add missing mempool lock for CalculateMemPoolAncestors (Matt Corallo)
0.14
Pieter Wuille 8 years ago
parent
commit
923dc447ea
No known key found for this signature in database
GPG Key ID: DBA1A67379A1A931
  1. 2
      src/txmempool.cpp

2
src/txmempool.cpp

@ -171,6 +171,8 @@ void CTxMemPool::UpdateTransactionsFromBlock(const std::vector<uint256> &vHashes @@ -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();

Loading…
Cancel
Save