lbcd/mining/cpuminer
Dave Collins d06c0bb181
blockchain: Use hash values in structs.
This modifies the blockNode and BestState structs in the blockchain
package to store hashes directly instead of pointers to them and updates
callers to deal with the API change in the exported BestState struct.

In general, the preferred approach for hashes moving forward is to store
hash values in complex data structures, particularly those that will be
used for cache entries, and accept pointers to hashes in arguments to
functions.

Some of the reasoning behind making this change is:

- It is generally preferred to avoid storing pointers to data in cache
  objects since doing so can easily lead to storing interior pointers
  into other structs that then can't be GC'd
- Keeping the hash values directly in the block node provides better
  cache locality
2017-02-03 11:36:33 -06:00
..
cpuminer.go blockchain: Use hash values in structs. 2017-02-03 11:36:33 -06:00
log.go cpuminer: Refactor code to its own package. 2016-10-28 11:06:11 -05:00
README.md cpuminer: Refactor code to its own package. 2016-10-28 11:06:11 -05:00

cpuminer

[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/cpuminer)

Overview

This package is currently a work in progress. It works without issue since it is used in several of the integration tests, but the API is not really ready for public consumption as it has simply been refactored out of the main codebase for now.

Installation and Updating

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

License

Package cpuminer is licensed under the copyfree ISC License.