aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/core.h
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2018-10-04 00:01:09 +0000
committerxiphon <xiphon@protonmail.com>2018-10-04 00:01:09 +0000
commit02d3ef7bdae7d1dd7a9a6f4fee24631cf9403278 (patch)
tree3892e9302e654cab76eb29ac0cf02a72b40c9ad6 /src/daemon/core.h
parentMerge pull request #4485 (diff)
downloadmonero-02d3ef7bdae7d1dd7a9a6f4fee24631cf9403278.tar.xz
blocks: use auto-generated .c files instead of 'LD -r -b binary'
Diffstat (limited to '')
-rw-r--r--src/daemon/core.h8
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;
}