Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: Dr.Bob on February 16, 2014, 01:24:25 PM



Title: Need help to set new checkpoints
Post by: Dr.Bob on February 16, 2014, 01:24:25 PM
Hi all im new with altcoins,i have compile my own altcoin all running fine.
But now i want to know how to set new checkpoints,where i can get the new hash and block index?

Code:
    static MapCheckpoints mapCheckpoints =
        boost::assign::map_list_of // Yo dawg, this is the secret. Checkpoint 0 hash == Genesis block hash.
        (         0, uint256("0x66647a017469253458fe0c727b7f324376a8d638e6c4355ac9b306913fefe80")),
                  ?, uint256("0x???????????????????????????????????????????????????????????????????????"))
        ;

Thanks for any help.


Title: Re: Need help to set new checkpoints
Post by: elbandi on February 16, 2014, 04:12:55 PM
If i good remembert, run the daemon with -rescan or -checkblock=0.
this prints the blocks data to debug.log file.

you can read the block id. you need to change this too:


Quote
      static const CCheckpointData data = {
        &mapCheckpoints,
        1383887110, // * UNIX timestamp of last checkpoint block
        2179203,    // * total number of transactions between genesis and last checkpoint
                    //   (the tx=... number in the SetBestChain debug.log lines)
        8000.0     // * estimated number of transactions per day after checkpoint
    };