2cfc6478ce
This moves the priority-related code from the mempool package to the mining package and also exports a new constant named UnminedHeight which takes the place of the old unexported mempoolHeight. Even though the mempool makes use of the priority code to make decisions about what it will accept, priority really has to do with mining since it influences which transactions will end up into a block. This change also has the side effect of being a step towards enabling separation of the mining code into its own package which, as previously mentioned, needs access to the priority calculation code as well. Finally, the mempoolHeight variable was poorly named since what it really represents is a transaction that has not been mined into a block yet. Renaming the variable to more accurately reflect its purpose makes it clear that it belongs in the mining package which also needs the definition now as well since the priority calculation code relies on it. This will also benefit an outstanding PR which needs access to the same value. |
||
---|---|---|
.. | ||
mining.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.