package
0.0.0-20191129015703-b51e6e604d8f
Repository: https://github.com/utopiacoinorg/ucd.git
Documentation: pkg.go.dev
# README
mining
Overview
This package is currently a work in progress.
Installation and Updating
$ go get -u github.com/UtopiaCoinOrg/ucd/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
MinHighPriority is the minimum priority value that allows a transaction to be considered high priority.
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.