34 #undef ELECTRONEUM_DEFAULT_LOG_CATEGORY 35 #define ELECTRONEUM_DEFAULT_LOG_CATEGORY "daemon" 49 boost::program_options::variables_map
const & vm
50 ,
t_core & core,
bool offline =
false 52 : m_protocol{core.
get(),
nullptr, offline}
54 MGINFO(
"Initializing cryptonote protocol...");
55 if (!m_protocol.
init(vm))
57 throw std::runtime_error(
"Failed to initialize cryptonote protocol.");
59 MGINFO(
"Cryptonote protocol initialized OK");
76 MGINFO(
"Stopping cryptonote protocol...");
80 MGINFO(
"Cryptonote protocol stopped successfully");
82 LOG_ERROR(
"Failed to stop cryptonote protocol!");
void set_p2p_endpoint(nodetool::i_p2p_endpoint< connection_context > *p2p)
bool init(const boost::program_options::variables_map &vm)
t_protocol(boost::program_options::variables_map const &vm, t_core &core, bool offline=false)
void set_p2p_endpoint(t_node_server &server)