37#undef MONERO_DEFAULT_LOG_CATEGORY
38#define MONERO_DEFAULT_LOG_CATEGORY "daemon"
46 static void init_options(boost::program_options::options_description & option_spec)
55 boost::program_options::variables_map
const m_vm_HACK;
58 boost::program_options::variables_map
const &
vm
64 MGINFO(
"Initializing core...");
65#if defined(PER_BLOCK_CHECKPOINT)
79 throw std::runtime_error(
"Failed to initialize core");
81 MGINFO(
"Core initialized OK");
102 MGINFO(
"Deinitializing core...");
107 MERROR(
"Failed to deinitialize core...");
handles core cryptonote functionality
Definition cryptonote_core.h:87
void set_cryptonote_protocol(i_cryptonote_protocol *pprotocol)
set the pointer to the cryptonote protocol object to use
Definition cryptonote_core.cpp:241
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
Definition cryptonote_core.cpp:312
bool deinit()
performs safe shutdown steps for core and core components
Definition cryptonote_core.cpp:738
bool init(const boost::program_options::variables_map &vm, const test_options *test_options=NULL, const GetCheckpointsCallback &get_checkpoints=nullptr, bool allow_dns=true)
initializes the core as needed
Definition cryptonote_core.cpp:453
Definition cryptonote_protocol_handler.h:80
cryptonote::core & get()
Definition core.h:95
bool run()
Definition core.h:90
cryptonote::core m_core
Definition core.h:52
void set_protocol(t_protocol_raw &protocol)
Definition core.h:85
static void init_options(boost::program_options::options_description &option_spec)
Definition core.h:46
~t_core()
Definition core.h:100
cryptonote::t_cryptonote_protocol_handler< cryptonote::core > t_protocol_raw
Definition core.h:51
t_core(boost::program_options::variables_map const &vm)
Definition core.h:57
boost::program_options::variables_map const m_vm_HACK
Definition core.h:55
This is the original cryptonote protocol network-events handler, modified by us.
bool is_arg_defaulted(const boost::program_options::variables_map &vm, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg)
Definition command_line.h:263
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
Definition command_line.h:269
std::function< const epee::span< const unsigned char >(cryptonote::network_type network)> GetCheckpointsCallback
Callback routine that returns checkpoints data for specific network type.
Definition blockchain.h:93
const command_line::arg_descriptor< bool > arg_proxy_allow_dns_leaks
Definition command_line_args.h:104
const command_line::arg_descriptor< std::string > arg_proxy
Definition command_line_args.h:99
Definition command_parser_executor.cpp:39
@ Warning
Useful when application has potentially harmful situtaions.
const char * name
Definition options.c:30
randomx_vm * vm
Definition tests.cpp:20