HomePhabricator

Fix mempool package tracking edge case
60de0d5826f1Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

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).

Details

Provenance
Suhas Daftuar <sdaftuar@gmail.com>Authored on Sep 23 2015, 17:37
deadalnixPushed on May 14 2017, 22:04
Parents
rABC598b25d5ee9c: Add test showing bug in mempool packages
Branches
Unknown
Tags
Unknown

Event Timeline

Suhas Daftuar <sdaftuar@gmail.com> committed rABC60de0d5826f1: Fix mempool package tracking edge case (authored by Suhas Daftuar <sdaftuar@gmail.com>).Sep 23 2015, 19:30