Merge pull request 'remove unused blocks' (#282) from wowario/wownero:blocks into master
Reviewed-on: https://git.wownero.com/wownero/wownero/pulls/282
This commit is contained in:
commit
c8a59f82e2
|
@ -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…
Reference in New Issue