Skip to content

Commit

Permalink
chaincfg: Deprecate min diff reduction params.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
davecgh committed Aug 3, 2022
1 parent e1a87f4 commit 46ab52d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions chaincfg/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 46ab52d

Please sign in to comment.