This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
    setEntries stage;
    if (setDescendants.count(entryit) == 0) {
        stage.insert(entryit);
    }
    
    
    
    while (!stage.empty()) {
        txiter it = *stage.begin();
        setDescendants.insert(it);
        stage.erase(it);
        const setEntries &setChildren = GetMemPoolChildren(it);
        BOOST_FOREACH(const txiter &childiter, setChildren) {
            if (!setDescendants.count(childiter)) {
                stage.insert(childiter);
            }
        }
    }
}
void CTxMemPool::removeRecursive(const CTransaction &origTx, MemPoolRemovalReason reason)