Bitcoin Forum
June 15, 2024, 02:22:17 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need help to set new checkpoints  (Read 543 times)
Dr.Bob (OP)
Sr. Member
****
Offline Offline

Activity: 306
Merit: 250


View Profile
February 16, 2014, 01:24:25 PM
 #1

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.
elbandi
Hero Member
*****
Offline Offline

Activity: 525
Merit: 529


View Profile
February 16, 2014, 04:12:55 PM
 #2

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
    };
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!