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...");
~t_core()
Definition: core.h:100
bool deinit()
performs safe shutdown steps for core and core components
Definition: cryptonote_core.cpp:738
Definition: command_parser_executor.cpp:39
const command_line::arg_descriptor< bool > arg_proxy_allow_dns_leaks
Definition: command_line_args.h:104
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
cryptonote::core m_core
Definition: core.h:52
t_core(boost::program_options::variables_map const &vm)
Definition: core.h:57
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
void set_cryptonote_protocol(i_cryptonote_protocol *pprotocol)
set the pointer to the cryptonote protocol object to use
Definition: cryptonote_core.cpp:241
void set_protocol(t_protocol_raw &protocol)
Definition: core.h:85
handles core cryptonote functionality
Definition: cryptonote_core.h:86
boost::program_options::variables_map const m_vm_HACK
Definition: core.h:55
const command_line::arg_descriptor< std::string > arg_proxy
Definition: command_line_args.h:99
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
Definition: cryptonote_core.cpp:312
Useful when application has potentially harmful situtaions.
This is the original cryptonote protocol network-events handler, modified by us.
randomx_vm * vm
Definition: tests.cpp:20
protocol
Definition: console.py:53
T get_arg(const boost::program_options::variables_map &vm, const arg_descriptor< T, false, true > &arg)
Definition: command_line.h:270
static void init_options(boost::program_options::options_description &option_spec)
Definition: core.h:46
const char * name
Definition: options.c:30
cryptonote::t_cryptonote_protocol_handler< cryptonote::core > t_protocol_raw
Definition: core.h:51
const epee::span< const unsigned char > GetCheckpointsData(cryptonote::network_type network)
Definition: blocks.cpp:21
bool run()
Definition: core.h:90
bool is_arg_defaulted(const boost::program_options::variables_map &vm, const arg_descriptor< T, required, dependent, NUM_DEPS > &arg)
Definition: command_line.h:264