For software that interfaces with Bitcoin Core via RPC, it can be useful to know whether the fRelayTxes flag is set. It could be added to `getnetworkinfo`.

list<CTransaction> removed;
        CValidationState stateDummy;
        if (tx.IsCoinBase() || !AcceptToMemoryPool(mempool, stateDummy, tx, false, NULL, NULL, true)) {
            mempool.removeRecursive(tx, removed);
        } else if (mempool.exists(tx.GetHash())) {
            vHashUpdate.push_back(tx.GetHash());
        }
    }
    
    
    
    
    
    mempool.UpdateTransactionsFromBlock(vHashUpdate);
    
    UpdateTip(pindexDelete->pprev, chainparams);
    
    
    BOOST_FOREACH(const CTransaction &tx, block.vtx) {