diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-10-05 23:13:31 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-10-06 11:15:43 +0200 |
commit | b26ab0b5803af4ffe23de11a45e43877301a4902 (patch) | |
tree | 084c67e8d2f93ed6ee6fa5629e997d8f7d56ddda /src/daemon/core.h | |
parent | Merge pull request #4495 (diff) | |
download | monero-b26ab0b5803af4ffe23de11a45e43877301a4902.tar.xz |
Merge pull request #4472
02d3ef7b blocks: use auto-generated .c files instead of 'LD -r -b binary' (xiphon)
Diffstat (limited to 'src/daemon/core.h')
-rw-r--r-- | src/daemon/core.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/daemon/core.h b/src/daemon/core.h index 475f418d6..eda8894a6 100644 --- a/src/daemon/core.h +++ b/src/daemon/core.h @@ -28,6 +28,7 @@ #pragma once +#include "blocks/blocks.h" #include "cryptonote_core/cryptonote_core.h" #include "cryptonote_protocol/cryptonote_protocol_handler.h" #include "misc_log_ex.h" @@ -85,7 +86,12 @@ public: //initialize core here MGINFO("Initializing core..."); std::string config_subdir = get_config_subdir(); - if (!m_core.init(m_vm_HACK, config_subdir.empty() ? NULL : config_subdir.c_str())) +#if defined(PER_BLOCK_CHECKPOINT) + cryptonote::GetCheckpointsCallback get_checkpoints = blocks::GetCheckpointsData; +#else + cryptonote::GetCheckpointsCallback get_checkpoints = nullptr; +#endif + if (!m_core.init(m_vm_HACK, config_subdir.empty() ? NULL : config_subdir.c_str(), nullptr, get_checkpoints)) { return false; } |