Skip to content

Commit

Permalink
Add initial checkpoint.
Browse files Browse the repository at this point in the history
Correct findcheckpoint output for Decred.

Closes #29
  • Loading branch information
jcvernaleo committed Feb 23, 2016
1 parent 18acc11 commit 203be41
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion chaincfg/params.go
Expand Up @@ -299,7 +299,9 @@ var MainNetParams = Params{
BlockTaxProportion: 1,

// Checkpoints ordered from oldest to newest.
Checkpoints: []Checkpoint{},
Checkpoints: []Checkpoint{
{440, newHashFromStr("0000000000002203eb2c95ee96906730bb56b2985e174518f90eb4db29232d93")},
},

// Mempool parameters
RelayNonStdTxs: false,
Expand Down
2 changes: 1 addition & 1 deletion cmd/findcheckpoint/findcheckpoint.go
Expand Up @@ -130,7 +130,7 @@ func findCandidates(db database.Db, latestHash *chainhash.Hash) ([]*chaincfg.Che
// uses the format the chain code expects for checkpoints added to the list.
func showCandidate(candidateNum int, checkpoint *chaincfg.Checkpoint) {
if cfg.UseGoOutput {
fmt.Printf("Candidate %d -- {%d, newShaHashFromStr(\"%v\")},\n",
fmt.Printf("Candidate %d -- {%d, newHashFromStr(\"%v\")},\n",
candidateNum, checkpoint.Height, checkpoint.Hash)
return
}
Expand Down

0 comments on commit 203be41

Please sign in to comment.