checkpoints - updated checkpoints.dat to include loki chain

This commit is contained in:
jcktm 2018-05-04 17:53:56 +10:00
parent 949dd0fb8a
commit b054bfd483
4 changed files with 19 additions and 2 deletions

View File

@ -158,7 +158,7 @@ set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${OPT_FLAGS_RELEASE}")
# set this to 0 if per-block checkpoint needs to be disabled
set(PER_BLOCK_CHECKPOINT 0)
set(PER_BLOCK_CHECKPOINT 1)
if(PER_BLOCK_CHECKPOINT)
add_definitions("-DPER_BLOCK_CHECKPOINT")

Binary file not shown.

View File

@ -162,6 +162,23 @@ namespace cryptonote
bool checkpoints::init_default_checkpoints(network_type nettype)
{
switch (nettype) {
case STAGENET:
break;
case TESTNET:
break;
case FAKECHAIN:
break;
case UNDEFINED:
break;
case MAINNET:
ADD_CHECKPOINT(0, "08ff156d993012b0bdf2816c4bee47c9bbc7930593b70ee02574edddf15ee933");
ADD_CHECKPOINT(1, "647997953a5ea9b5ab329c2291d4cbb08eed587c287e451eeeb2c79bab9b940f");
ADD_CHECKPOINT(10, "4a7cd8b9bff380d48d6f3533a5e0509f8589cc77d18218b3f7218846e77738fc");
ADD_CHECKPOINT(100, "01b8d33a50713ff837f8ad7146021b8e3060e0316b5e4afc407e46cdb50b6760");
ADD_CHECKPOINT(1000, "5e3b0a1f931885bc0ab1d6ecdc625816576feae29e2f9ac94c5ccdbedb1465ac");
break;
}
return true;
}

View File

@ -4388,7 +4388,7 @@ void Blockchain::cancel()
}
#if defined(PER_BLOCK_CHECKPOINT)
static const char expected_block_hashes_hash[] = "1d3df1a177bd6f752d87c0d7b960e502605742721afb39953265f1e0f7f9b01f";
static const char expected_block_hashes_hash[] = "cd59e51a8860ef1ff14185af81ba9d239dffdef3bb5900922719e032d85aac73";
void Blockchain::load_compiled_in_block_hashes()
{
const bool testnet = m_nettype == TESTNET;