diff options
author | xiphon <xiphon@protonmail.com> | 2018-10-09 12:33:39 +0000 |
---|---|---|
committer | xiphon <xiphon@protonmail.com> | 2018-10-22 01:12:00 +0300 |
commit | fd62b6e79f87503bf27a3c8709aaf9cc4ae36146 (patch) | |
tree | a68bf9c14fd49d40f24fb92e49395c0f77e8a988 /src/blockchain_utilities/blockchain_import.cpp | |
parent | Merge pull request #4532 (diff) | |
download | monero-fd62b6e79f87503bf27a3c8709aaf9cc4ae36146.tar.xz |
blocks: use auto-generated .c files instead of 'LD -r -b binary'
Diffstat (limited to '')
-rw-r--r-- | src/blockchain_utilities/blockchain_import.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/blockchain_utilities/blockchain_import.cpp b/src/blockchain_utilities/blockchain_import.cpp index 9ec768d26..7f92ecd87 100644 --- a/src/blockchain_utilities/blockchain_import.cpp +++ b/src/blockchain_utilities/blockchain_import.cpp @@ -37,6 +37,7 @@ #include "misc_log_ex.h" #include "bootstrap_file.h" #include "bootstrap_serialization.h" +#include "blocks/blocks.h" #include "cryptonote_basic/cryptonote_format_utils.h" #include "serialization/binary_utils.h" // dump_binary(), parse_binary() #include "serialization/json_utils.h" // dump_json() @@ -758,7 +759,12 @@ int main(int argc, char* argv[]) { core.disable_dns_checkpoints(true); - if (!core.init(vm, NULL)) +#if defined(PER_BLOCK_CHECKPOINT) + const GetCheckpointsCallback& get_checkpoints = blocks::GetCheckpointsData; +#else + const GetCheckpointsCallback& get_checkpoints = nullptr; +#endif + if (!core.init(vm, nullptr, nullptr, get_checkpoints)) { std::cerr << "Failed to initialize core" << ENDL; return 1; |