From c292121e0aa2fac61847ee9b4fee1e779d4a362a Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Tue, 2 Aug 2022 06:02:49 -0500 Subject: [PATCH] chaincfg: Deprecate min diff reduction params. This deprecates the ReduceMinDifficulty and MinDiffReductionTime parameters since they will no longer apply to testnet version 3 after activation of the maximum difficulty rules nor any future versions of testnet. --- chaincfg/params.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chaincfg/params.go b/chaincfg/params.go index eb297a79fd..0e67fca37c 100644 --- a/chaincfg/params.go +++ b/chaincfg/params.go @@ -245,12 +245,16 @@ type Params struct { // minimum required difficulty after a long enough period of time has // passed without finding a block. This is really only useful for test // networks and should not be set on a main network. + // + // Deprecated: This will be removed in the next major version bump. ReduceMinDifficulty bool // MinDiffReductionTime is the amount of time after which the minimum // required difficulty should be reduced when a block hasn't been found. // // NOTE: This only applies if ReduceMinDifficulty is true. + // + // Deprecated: This will be removed in the next major version bump. MinDiffReductionTime time.Duration // GenerateSupported specifies whether or not CPU mining is allowed.