37 #undef ELECTRONEUM_DEFAULT_LOG_CATEGORY 38 #define ELECTRONEUM_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
74 MGINFO(
"Initializing core...");
75 #if defined(PER_BLOCK_CHECKPOINT) 80 if (!m_core.
init(m_vm_HACK,
nullptr, get_checkpoints))
84 MGINFO(
"Core initialized OK");
95 MGINFO(
"Deinitializing core...");
100 MERROR(
"Failed to deinitialize core...");
bool deinit()
performs safe shutdown steps for core and core components
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
std::function< const epee::span< const unsigned char >cryptonote::network_type network)> GetCheckpointsCallback
Callback routine that returns checkpoints data for specific network type.
t_core(boost::program_options::variables_map const &vm)
void set_cryptonote_protocol(i_cryptonote_protocol *pprotocol)
set the pointer to the cryptonote protocol object to use
void set_protocol(t_protocol_raw &protocol)
handles core cryptonote functionality
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
This is the orginal cryptonote protocol network-events handler, modified by us.
static void init_options(boost::program_options::options_description &option_spec)
const epee::span< const unsigned char > GetCheckpointsData(cryptonote::network_type network)