34 #include "misc_log_ex.h"
36 #undef MONERO_DEFAULT_LOG_CATEGORY
37 #define MONERO_DEFAULT_LOG_CATEGORY "daemon"
45 static void init_options(boost::program_options::options_description & option_spec)
54 boost::program_options::variables_map
const m_vm_HACK;
57 boost::program_options::variables_map
const & vm
63 MGINFO(
"Initializing core...");
64 #if defined(PER_BLOCK_CHECKPOINT)
71 throw std::runtime_error(
"Failed to initialize core");
73 MGINFO(
"Core initialized OK");
94 MGINFO(
"Deinitializing core...");
99 MERROR(
"Failed to deinitialize core...");
handles core cryptonote functionality
Definition: cryptonote_core.h:88
void set_cryptonote_protocol(i_cryptonote_protocol *pprotocol)
set the pointer to the cryptonote protocol object to use
Definition: cryptonote_core.cpp:245
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
Definition: cryptonote_core.cpp:319
bool deinit()
performs safe shutdown steps for core and core components
Definition: cryptonote_core.cpp:745
bool init(const boost::program_options::variables_map &vm, const test_options *test_options=NULL, const GetCheckpointsCallback &get_checkpoints=nullptr)
initializes the core as needed
Definition: cryptonote_core.cpp:461
cryptonote::core & get()
Definition: core.h:87
bool run()
Definition: core.h:82
cryptonote::core m_core
Definition: core.h:51
void set_protocol(t_protocol_raw &protocol)
Definition: core.h:77
static void init_options(boost::program_options::options_description &option_spec)
Definition: core.h:45
~t_core()
Definition: core.h:92
cryptonote::t_cryptonote_protocol_handler< cryptonote::core > t_protocol_raw
Definition: core.h:50
t_core(boost::program_options::variables_map const &vm)
Definition: core.h:56
boost::program_options::variables_map const m_vm_HACK
Definition: core.h:54
This is the original cryptonote protocol network-events handler, modified by us.
const epee::span< const unsigned char > GetCheckpointsData(cryptonote::network_type network)
Definition: blocks.cpp:21
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:90
Definition: command_parser_executor.cpp:37