Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: a7b35d9f9e24f8cebf3dc30cf083668700690095
      
https://github.com/btcsuite/btcd/commit/a7b35d9f9e24f8cebf3dc30cf083668700690095
  Author: Dave Collins <[email protected]>
  Date:   2016-08-10 (Wed, 10 Aug 2016)

  Changed paths:
    M blockchain/chain.go
    M blockchain/chain_test.go
    M blockchain/common_test.go
    M blockchain/difficulty.go
    M blockchain/internal_test.go
    M blockchain/reorganization_test.go
    M blockchain/validate.go
    M chaincfg/params.go
    M mempool.go
    M mining.go
    M rpcserver.go

  Log Message:
  -----------
  chaincfg/blockchain: Parameterize more chain consts. (#732)

This moves several of the chain constants to the Params struct in the
chaincfg package which is intended for that purpose.  This is mostly a
backport of the same modifications made in Decred along with a few
additional things cleaned up.

The following is an overview of the changes:

- Comment all fields in the Params struct definition
- Add locals to BlockChain instance for the calculated values based on
  the provided chain params
- Rename the following param fields:
  - SubsidyHalvingInterval -> SubsidyReductionInterval
  - ResetMinDifficulty -> ReduceMinDifficulty
- Add new Param fields:
  - CoinbaseMaturity
  - TargetTimePerBlock
  - TargetTimespan
  - BlocksPerRetarget
  - RetargetAdjustmentFactor
  - MinDiffReductionTime


Reply via email to