lbcd/mining
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 blockchain: Use hash values in structs. 2017-02-03 11:36:33 -06:00
log.go mining: Refactor template code into mining package. 2016-10-27 11:48:48 -05:00
mining.go blockchain: Use hash values in structs. 2017-02-03 11:36:33 -06: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.