From 203be41a151c0612f832bf8f537c482985275c58 Mon Sep 17 00:00:00 2001 From: "John C. Vernaleo" Date: Mon, 22 Feb 2016 10:42:59 -0500 Subject: [PATCH] Add initial checkpoint. Correct findcheckpoint output for Decred. Closes #29 --- chaincfg/params.go | 4 +++- cmd/findcheckpoint/findcheckpoint.go | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/chaincfg/params.go b/chaincfg/params.go index c804a3bb71..cf7b42e7c0 100644 --- a/chaincfg/params.go +++ b/chaincfg/params.go @@ -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, diff --git a/cmd/findcheckpoint/findcheckpoint.go b/cmd/findcheckpoint/findcheckpoint.go index 039a0c18cc..2dc82c8e50 100644 --- a/cmd/findcheckpoint/findcheckpoint.go +++ b/cmd/findcheckpoint/findcheckpoint.go @@ -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 }