package
1.2.0
Repository: https://github.com/chappjc/dcrd.git
Documentation: pkg.go.dev

# README

mining

Build Status ISC License GoDoc

Overview

This package is currently a work in progress.

Installation and Updating

$ go get -u github.com/decred/dcrd/mining

License

Package mining is licensed under the copyfree ISC License.

# Functions

CalcPriority returns a transaction priority given a transaction and the sum of each of its input values multiplied by their age (# of confirmations).

# Constants

UnminedHeight is the height used for the "block" height field of the contextual transaction information provided in a transaction store when it has not yet been mined into a block.

# Structs

Policy houses the policy (configuration parameters) which is used to control the generation of block templates.
TxDesc is a descriptor about a transaction in a transaction source along with additional metadata.
VoteDesc is a descriptor about a vote transaction in a transaction source along with additional metadata.

# Interfaces

TxSource represents a source of transactions to consider for inclusion in new blocks.