Branch: refs/heads/master
  Home:   https://github.com/btcsuite/btcd
  Commit: 660467259e2647cbde854f5b7c12b0605a76387b
      
https://github.com/btcsuite/btcd/commit/660467259e2647cbde854f5b7c12b0605a76387b
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-10-27 (Thu, 27 Oct 2016)

  Changed paths:
    M cpuminer.go
    M mining.go
    M server.go

  Log Message:
  -----------
  mining: Break dependency on block manager instance.

This modifies the block template generate for the mining code such that
it takes chain instance and params instead of requiring a fully
initialized blockManager instance.

Also, in preparation for being able to more easily separate the code, it
exposes and makes use of two new functions:
- BestSnapshot which returns the state snapshot from the underlying
  chain instance
- TxSource which returns the underlying transaction source

This is a step towards being able to separate the mining code into its
own package.  No functional change.


  Commit: a18f883c1fdff7ecedd571ec54ff9d0ae1007631
      
https://github.com/btcsuite/btcd/commit/a18f883c1fdff7ecedd571ec54ff9d0ae1007631
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-10-27 (Thu, 27 Oct 2016)

  Changed paths:
    M mempool/mempool.go
    M mining.go
    M mining/mining.go

  Log Message:
  -----------
  mining/mempool: Export MinHighPriority from mining.

This move the export for MinHighPriority from the mempool package to the
mining package.  This should have been done when the priority
calculation code was moved to the mining package.


  Commit: a952a3a1484942163bb0bc3d7d457fa35168fd8a
      
https://github.com/btcsuite/btcd/commit/a952a3a1484942163bb0bc3d7d457fa35168fd8a
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-10-27 (Thu, 27 Oct 2016)

  Changed paths:
    M mining.go

  Log Message:
  -----------
  mining: Use generator state versus local state.

This change is a step towards being able to separate the mining code
into its own subpackage.  No functional change.


  Commit: 61ca40e0e94902916e0f5e369393fbbaa3be42eb
      
https://github.com/btcsuite/btcd/commit/61ca40e0e94902916e0f5e369393fbbaa3be42eb
  Author: Dave Collins <da...@conformal.com>
  Date:   2016-10-27 (Thu, 27 Oct 2016)

  Changed paths:
    M cpuminer.go
    M log.go
    R mining.go
    A mining/log.go
    M mining/mining.go
    A mining/mining_test.go
    R mining_test.go
    M rpcserver.go
    M server.go

  Log Message:
  -----------
  mining: Refactor template code into mining package.

This does the minimum work necessary to refactor the block template
generation code into the mining package.  The idea is that separating
this code into the mining package will greatly improve its testability,
allow independent benchmarking and profiling, and open up some
interesting opportunities for future development related to mining.

There are some areas related to policy and other configuration that
could be further refactored, however it is better to do that in future
commits in order to keep the changeset as small as possible during this
refactor.

Overview of the major changes:

- Move mining.go -> mining/mining.go
- Move mining_test.go -> mining/mining_test.go
- Add logger to mining package
- Update the MINR subsystem to use the new mining package logger
- Export CoinbaseFlags from the mining package
- BlkTmplGenerator is now mining.BlkTmplGenerator
- Update all references to the mining code to use the package


Compare: https://github.com/btcsuite/btcd/compare/671901486c80...61ca40e0e949

Reply via email to