#include <core.h>
|
| static void | init_options (boost::program_options::options_description &option_spec) |
Definition at line 43 of file core.h.
◆ t_core()
| daemonize::t_core::t_core |
( |
boost::program_options::variables_map const & | vm | ) |
|
|
inline |
Definition at line 57 of file core.h.
60 : m_core{nullptr}
61 , m_vm_HACK{vm}
62 {
63 }
◆ ~t_core()
| daemonize::t_core::~t_core |
( |
| ) |
|
|
inline |
Definition at line 93 of file core.h.
94 {
95 MGINFO(
"Deinitializing core...");
96 try {
97 m_core.deinit();
98 m_core.set_cryptonote_protocol(nullptr);
99 } catch (...) {
100 MERROR(
"Failed to deinitialize core...");
101 }
102 }
◆ get()
Definition at line 88 of file core.h.
89 {
90 return m_core;
91 }
◆ init_options()
| void daemonize::t_core::init_options |
( |
boost::program_options::options_description & | option_spec | ) |
|
|
inlinestatic |
Definition at line 46 of file core.h.
47 {
49 }
static void init_options(boost::program_options::options_description &desc)
adds command line options to the given options set
◆ run()
| bool daemonize::t_core::run |
( |
| ) |
|
|
inline |
Definition at line 71 of file core.h.
72 {
73
74 MGINFO(
"Initializing core...");
75#if defined(PER_BLOCK_CHECKPOINT)
77#else
79#endif
80 if (!m_core.init(m_vm_HACK, nullptr, get_checkpoints))
81 {
82 return false;
83 }
84 MGINFO(
"Core initialized OK");
85 return true;
86 }
const epee::span< const unsigned char > GetCheckpointsData(cryptonote::network_type network)
std::function< const epee::span< const unsigned char >(cryptonote::network_type network)> GetCheckpointsCallback
Callback routine that returns checkpoints data for specific network type.
◆ set_protocol()
| void daemonize::t_core::set_protocol |
( |
t_protocol_raw & | protocol | ) |
|
|
inline |
Definition at line 66 of file core.h.
67 {
68 m_core.set_cryptonote_protocol(&protocol);
69 }
The documentation for this class was generated from the following file:
- /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/daemon/core.h