remove unused blocks

blocks
wowario 4 years ago
parent c70878b54e
commit 9f099388a9
No known key found for this signature in database
GPG Key ID: 24DCBE762DE9C111

@ -28,7 +28,7 @@
set(GENERATED_SOURCES "") set(GENERATED_SOURCES "")
foreach(BLOB_NAME checkpoints testnet_blocks stagenet_blocks) foreach(BLOB_NAME checkpoints)
set(OUTPUT_C_SOURCE "generated_${BLOB_NAME}.c") set(OUTPUT_C_SOURCE "generated_${BLOB_NAME}.c")
list(APPEND GENERATED_SOURCES ${OUTPUT_C_SOURCE}) list(APPEND GENERATED_SOURCES ${OUTPUT_C_SOURCE})
set(INPUT_DAT_FILE "${BLOB_NAME}.dat") set(INPUT_DAT_FILE "${BLOB_NAME}.dat")

@ -4,18 +4,12 @@
extern const unsigned char checkpoints[]; extern const unsigned char checkpoints[];
extern const size_t checkpoints_len; extern const size_t checkpoints_len;
extern const unsigned char stagenet_blocks[];
extern const size_t stagenet_blocks_len;
extern const unsigned char testnet_blocks[];
extern const size_t testnet_blocks_len;
namespace blocks namespace blocks
{ {
const std::unordered_map<cryptonote::network_type, const epee::span<const unsigned char>, std::hash<size_t>> CheckpointsByNetwork = { const std::unordered_map<cryptonote::network_type, const epee::span<const unsigned char>, std::hash<size_t>> CheckpointsByNetwork = {
{cryptonote::network_type::MAINNET, {checkpoints, checkpoints_len}}, {cryptonote::network_type::MAINNET, {checkpoints, checkpoints_len}}
{cryptonote::network_type::STAGENET, {stagenet_blocks, stagenet_blocks_len}},
{cryptonote::network_type::TESTNET, {testnet_blocks, testnet_blocks_len}}
}; };
const epee::span<const unsigned char> GetCheckpointsData(cryptonote::network_type network) const epee::span<const unsigned char> GetCheckpointsData(cryptonote::network_type network)

Loading…
Cancel
Save