mirror of
https://github.com/monero-project/monero.git
synced 2025-12-22 15:16:40 -08:00
blocks: use auto-generated .c files instead of 'LD -r -b binary'
This commit is contained in:
@@ -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)
|
||||
GetCheckpointsCallback get_checkpoints = blocks::GetCheckpointsData;
|
||||
#else
|
||||
GetCheckpointsCallback get_checkpoints = nullptr;
|
||||
#endif
|
||||
if (!core.init(vm, nullptr, nullptr, get_checkpoints))
|
||||
{
|
||||
std::cerr << "Failed to initialize core" << ENDL;
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user