33 #include "misc_log_ex.h" 35 #undef MONERO_DEFAULT_LOG_CATEGORY 36 #define MONERO_DEFAULT_LOG_CATEGORY "daemon" 44 static void init_options(boost::program_options::options_description & option_spec)
53 boost::program_options::variables_map
const m_vm_HACK;
56 boost::program_options::variables_map
const & vm
73 bool mainnet = !testnet && !stagenet;
86 MGINFO(
"Initializing core...");
92 MGINFO(
"Core initialized OK");
103 MGINFO(
"Deinitializing core...");
108 MERROR(
"Failed to deinitialize core...");
~t_core()
Definition: core.h:101
bool deinit()
performs safe shutdown steps for core and core components
Definition: cryptonote_core.cpp:665
uint16_t const P2P_DEFAULT_PORT
Definition: cryptonote_config.h:166
uint16_t const P2P_DEFAULT_PORT
Definition: cryptonote_config.h:195
Definition: command_parser_executor.cpp:37
const command_line::arg_descriptor< bool, false > arg_stagenet_on
Definition: cryptonote_core.cpp:75
uint16_t const P2P_DEFAULT_PORT
Definition: cryptonote_config.h:180
cryptonote::core m_core
Definition: core.h:50
t_core(boost::program_options::variables_map const &vm)
Definition: core.h:55
const command_line::arg_descriptor< bool, false > arg_testnet_on
Definition: cryptonote_core.cpp:70
void set_cryptonote_protocol(i_cryptonote_protocol *pprotocol)
set the pointer to the cryptonote protocol object to use
Definition: cryptonote_core.cpp:216
void set_protocol(t_protocol_raw &protocol)
Definition: core.h:64
handles core cryptonote functionality
Definition: cryptonote_core.h:79
boost::program_options::variables_map const m_vm_HACK
Definition: core.h:53
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
Definition: cryptonote_core.cpp:282
bool init(const boost::program_options::variables_map &vm, const char *config_subdir=NULL, const test_options *test_options=NULL)
initializes the core as needed
Definition: cryptonote_core.cpp:414
cryptonote::core & get()
Definition: core.h:96
This is the original cryptonote protocol network-events handler, modified by us.
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
Definition: command_line.h:270
std::string get_config_subdir() const
Definition: core.h:69
static void init_options(boost::program_options::options_description &option_spec)
Definition: core.h:44
cryptonote::t_cryptonote_protocol_handler< cryptonote::core > t_protocol_raw
Definition: core.h:49
bool run()
Definition: core.h:83