This is to track the regression introduced in master, which needs fixing for 0.14. See #9240, #9371, etc.
{
    setEntries parentHashes;
    const CTransaction &tx = entry.GetTx();
    if (fSearchForParents) {
        
        
        
        for (unsigned int i = 0; i < tx.vin.size(); i++) {
            txiter piter = mapTx.find(tx.vin[i].prevout.hash);
            if (piter != mapTx.end()) {
                parentHashes.insert(piter);
                if (parentHashes.size() + 1 > limitAncestorCount) {
                    errString = strprintf("too many unconfirmed parents [limit: %u]", limitAncestorCount);
                    return false;
                }
            }
        }
    } else {
        
        
        txiter it = mapTx.iterator_to(entry);
        parentHashes = GetMemPoolParents(it);
    }
    size_t totalSizeWithAncestors = entry.GetTxSize();