lbcd/mining
Dave Collins 1a69eb0617
cpuminer: Refactor code to its own package.
This does the minimum work necessary to refactor the CPU miner code into
its own package.  The idea is that separating this code into its own
package will improve its testability and ultimately be useful to other
parts of the codebase such as the various tests which currently
effectively have their own stripped-down versions of this code.

The API will certainly need some additional cleanup and changes to make
it more usable outside of the specific circumstances it was originally
designed to support (namely the generate RPC), 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:

- Create the new package
- Move cpuminer.go -> cpuminer/cpuminer.go
- Update mining logging to use the new cpuminer package logger
- Rename cpuminerConfig to Config (so it's now cpuminer.Config)
- Rename newCPUMiner to New (so it's now cpuminer.New)
- Update all references to the cpuminer to use the package
- Add a skeleton README.md
2016-10-28 11:06:11 -05:00
..
cpuminer cpuminer: Refactor code to its own package. 2016-10-28 11:06:11 -05:00
log.go mining: Refactor template code into mining package. 2016-10-27 11:48:48 -05:00
mining.go wire: Make NewMsgTx accept the tx version. 2016-10-27 14:09:29 -05:00
mining_test.go mining: Refactor template code into mining package. 2016-10-27 11:48:48 -05:00
policy.go mining/mempool: Move priority code to mining pkg. 2016-10-26 12:01:49 -05:00
policy_test.go mining: Add basic priority calculation tests. 2016-10-27 13:13:37 -05:00
README.md mining: Create skeleton package. 2015-11-30 12:23:50 -06:00

mining

[Build Status] (https://travis-ci.org/btcsuite/btcd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [GoDoc] (http://godoc.org/github.com/btcsuite/btcd/mining)

Overview

This package is currently a work in progress.

Installation and Updating

$ go get -u github.com/btcsuite/btcd/mining

License

Package mining is licensed under the copyfree ISC License.