Bitcoin Price USD

BTC-E: $ | OKcoin: $ | CoinBase: $
Difficulty: Array

TOPIC: HOW-TO - Update Checkpoint

HOW-TO - Update Checkpoint 3 years 10 months ago #57

  • Teslacoin
  • Teslacoin's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Thank you received: 3
  • Karma: 0
HOW-TO - Update Checkpoint

If you are the manager of one coin, you need to update checkpoint.
This is important so that nobody mess with your wallet and fork it to get coin back.

You should update your wallet every month (or every x block)
I decided to update it every 100 000 block for now.

If you are a POS coin you need to update checkpoint and pos checkpoint.

Before adding checkpoint, don't forget to check the hash on multiple wallet to be sure there is no fork.

First checkpoint.

Go on src/checkpoint.cpp
and update the static MapCheckpoints mapCheckpoints =
boost::assign::map_list_of

Just add the hash of the block.
ex:
(300000, uint256("0x0000000176cccf5d52740533848d18f1d352ef03b4351e323c20e8753949de26"))

POS Checkpoint

This is in src/kernel.cpp
do getblockhash (#block)
getblock (hash)

and get the modifierchecksum

Now add it
ex:
( 500000, 0x683d6393 )


If you have any suggestion let me know.
The administrator has disabled public write access.
The following user(s) said Thank You: Tsquared

HOW-TO - Update Checkpoint 2 years 1 week ago #572

Thank you for pointing me in the right direction
The administrator has disabled public write access.
Time to create page: 0.093 seconds