mirror of
https://github.com/btcsuite/btcd.git
synced 2024-11-19 09:50:08 +01:00
1a69eb0617
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 |
||
---|---|---|
.. | ||
cpuminer | ||
log.go | ||
mining_test.go | ||
mining.go | ||
policy_test.go | ||
policy.go | ||
README.md |
mining
[] (https://travis-ci.org/btcsuite/btcd) ![ISC License] (http://img.shields.io/badge/license-ISC-blue.svg) [] (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.