diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-09-24 12:14:56 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-09-24 12:24:41 +0200 |
| commit | 82d2aef7b3e05abda81db03a8d4725d52f06f203 (patch) | |
| tree | 7c055fc00cdbc9cccd63fdfb1cb7caceaab33279 /src/txmempool.h | |
| parent | Merge pull request #6550 (diff) | |
| parent | Fix mempool package tracking edge case (diff) | |
| download | discoin-82d2aef7b3e05abda81db03a8d4725d52f06f203.tar.xz discoin-82d2aef7b3e05abda81db03a8d4725d52f06f203.zip | |
Merge pull request #6715
60de0d5 Fix mempool package tracking edge case (Suhas Daftuar)
598b25d Add test showing bug in mempool packages (Suhas Daftuar)
Diffstat (limited to 'src/txmempool.h')
| -rw-r--r-- | src/txmempool.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/txmempool.h b/src/txmempool.h index f0c3f7e0f..c0eef0dd2 100644 --- a/src/txmempool.h +++ b/src/txmempool.h @@ -392,8 +392,10 @@ public: * limitDescendantCount = max number of descendants any ancestor can have * limitDescendantSize = max size of descendants any ancestor can have * errString = populated with error reason if any limits are hit + * fSearchForParents = whether to search a tx's vin for in-mempool parents, or + * look up parents from mapLinks. Must be true for entries not in the mempool */ - bool CalculateMemPoolAncestors(const CTxMemPoolEntry &entry, setEntries &setAncestors, uint64_t limitAncestorCount, uint64_t limitAncestorSize, uint64_t limitDescendantCount, uint64_t limitDescendantSize, std::string &errString); + bool CalculateMemPoolAncestors(const CTxMemPoolEntry &entry, setEntries &setAncestors, uint64_t limitAncestorCount, uint64_t limitAncestorSize, uint64_t limitDescendantCount, uint64_t limitDescendantSize, std::string &errString, bool fSearchForParents = true); unsigned long size() { |