checkpoints: add a token checkpoint on testnet (the genesis block)

This commit is contained in:
moneromooo-monero 2017-09-11 16:32:46 +01:00
parent 493fad8053
commit cdbbe99c82
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
3 changed files with 10 additions and 3 deletions

View file

@ -136,8 +136,14 @@ namespace cryptonote
return true;
}
bool checkpoints::init_default_checkpoints()
bool checkpoints::init_default_checkpoints(bool testnet)
{
if (testnet)
{
// just use the genesis block on testnet
ADD_CHECKPOINT(0, "48ca7cd3c8de5b6a4d53d2861fbdaedca141553559f9be9520068053cda8430b");
return true;
}
ADD_CHECKPOINT(1, "771fbcd656ec1464d3a02ead5e18644030007a0fc664c0a964d30922821a8148");
ADD_CHECKPOINT(10, "c0e3b387e47042f72d8ccdca88071ff96bff1ac7cde09ae113dbb7ad3fe92381");
ADD_CHECKPOINT(100, "ac3e11ca545e57c49fca2b4e8c48c03c23be047c43e471e1394528b1f9f80b2d");