public void set_p2p_endpoint(IP2pEndpoint p2p) { if (p2p != null) { m_p2p = p2p; } else { m_p2p = m_p2p_stub; } }
public CryptoNoteProtocolHandler(Currency currency, System.Dispatcher dispatcher, ICore rcore, IP2pEndpoint p_net_layout, Logging.ILogger log) { this.m_dispatcher = new System.Dispatcher(dispatcher); //C++ TO C# CONVERTER TODO TASK: The following line could not be converted: this.m_currency = new CryptoNote.Currency(currency); this.m_core = new CryptoNote.ICore(rcore); this.m_p2p = p_net_layout; this.m_synchronized = false; this.m_stop = false; this.m_observedHeight = 0; this.m_blockchainHeight = 0; this.m_peersCount = 0; this.logger = new Logging.LoggerRef(log, "protocol"); if (m_p2p == null) { m_p2p = m_p2p_stub; } }