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

{
    if (!addr.IsRoutable())
        return false;
    if (!fDiscover && nScore < LOCAL_MANUAL)
        return false;
    if (IsLimited(addr))
        return false;
    LogPrintf("AddLocal(%s,%i)\n", addr.ToString(), nScore);
    {
        LOCK(cs_mapLocalHost);
        bool fAlready = mapLocalHost.count(addr) > 0;
        LocalServiceInfo &info = mapLocalHost[addr];
        if (!fAlready || nScore >= info.nScore) {
            info.nScore = nScore + (fAlready ? 1 : 0);
            info.nPort = addr.GetPort();
        }
    }
    return true;
}
bool AddLocal(const CNetAddr &addr, int nScore)