diff options
| author | Suhas Daftuar <[email protected]> | 2015-09-23 13:37:32 -0400 |
|---|---|---|
| committer | Suhas Daftuar <[email protected]> | 2015-09-23 15:30:41 -0400 |
| commit | 60de0d5826f1b848a43ec989ff712f002eddc3dc (patch) | |
| tree | f30240eccceb817d58cb7a35e287f5ef979118df /src/script/script.cpp | |
| parent | Add test showing bug in mempool packages (diff) | |
| download | discoin-60de0d5826f1b848a43ec989ff712f002eddc3dc.tar.xz discoin-60de0d5826f1b848a43ec989ff712f002eddc3dc.zip | |
Fix mempool package tracking edge case
CalculateMemPoolAncestors was always looping over a transaction's inputs
to find in-mempool parents. When adding a new transaction, this is the
correct behavior, but when removing a transaction, we want to use the
ancestor set that would be calculated by walking mapLinks (which should
in general be the same set, except during a reorg when the mempool is
in an inconsistent state, and the mapLinks-based calculation would be the
correct one).
Diffstat (limited to 'src/script/script.cpp')
0 files changed, 0 insertions, 0 deletions