From 3542bcc28304c613b049b8d783bbdff30a227b20 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 12 Dec 2018 04:21:37 -0600 Subject: [PATCH] chaincfg: Add checkpoints for upcoming release. This adds a checkpoint to mainnet at height 295940 and testnet at height 83520. Also, bump the chaincfg module to v1.2.1 so the new checkpoint are available to consumers. --- chaincfg/mainnetparams.go | 1 + chaincfg/testnetparams.go | 4 +++- go.mod | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chaincfg/mainnetparams.go b/chaincfg/mainnetparams.go index 8c744d0e90..cb2bb385c5 100644 --- a/chaincfg/mainnetparams.go +++ b/chaincfg/mainnetparams.go @@ -68,6 +68,7 @@ var MainNetParams = Params{ {189950, newHashFromStr("000000000000007341d8ae2ea7e41f25cee00e1a70a4a3dc1cb055d14ecb2e11")}, {214672, newHashFromStr("0000000000000021d5cbeead55cb7fd659f07e8127358929ffc34cd362209758")}, {259810, newHashFromStr("0000000000000000ee0fbf469a9f32477ffbb46ebd7a280a53c842ab4243f97c")}, + {295940, newHashFromStr("0000000000000000148852c8a919addf4043f9f267b13c08df051d359f1622ca")}, }, // The miner confirmation window is defined as: diff --git a/chaincfg/testnetparams.go b/chaincfg/testnetparams.go index be4d26d3a3..4459b3f7ff 100644 --- a/chaincfg/testnetparams.go +++ b/chaincfg/testnetparams.go @@ -51,7 +51,9 @@ var TestNet3Params = Params{ BlockTaxProportion: 1, // Checkpoints ordered from oldest to newest. - Checkpoints: []Checkpoint{}, + Checkpoints: []Checkpoint{ + {83520, newHashFromStr("0000000001e6244d95feae8b598e854905158c7bc781daf874afff88675ef0c8")}, + }, // Consensus rule change deployments. // diff --git a/go.mod b/go.mod index a12ccc22ab..6ba174465f 100644 --- a/go.mod +++ b/go.mod @@ -14,7 +14,7 @@ require ( github.com/decred/dcrd/blockchain v1.1.1 github.com/decred/dcrd/blockchain/stake v1.1.0 github.com/decred/dcrd/certgen v1.0.2 - github.com/decred/dcrd/chaincfg v1.2.0 + github.com/decred/dcrd/chaincfg v1.2.1 github.com/decred/dcrd/chaincfg/chainhash v1.0.1 github.com/decred/dcrd/connmgr v1.0.2 github.com/decred/dcrd/database v1.0.3