#include "blocks.h" #include extern const unsigned char checkpoints[]; extern const size_t checkpoints_len; namespace blocks { const std::unordered_map, std::hash> CheckpointsByNetwork = { {cryptonote::network_type::MAINNET, {checkpoints, checkpoints_len}} }; const epee::span GetCheckpointsData(cryptonote::network_type network) { const auto it = CheckpointsByNetwork.find(network); if (it != CheckpointsByNetwork.end()) { return it->second; } return nullptr; } }