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

{
    LogPrintf("StopNode()\n");
    MapPort(false);
    if (semOutbound)
        for (int i=0; i<MAX_OUTBOUND_CONNECTIONS; i++)
            semOutbound->post();
    if (fAddressesInitialized)
    {
        DumpData();
        fAddressesInitialized = false;
    }
    return true;
}
class CNetCleanup
{
public:
    CNetCleanup() {}