package
3.5.7+incompatible
Repository: https://github.com/classzz/classzz.git
Documentation: pkg.go.dev
# README
mining
Overview
This package is currently a work in progress.
Installation and Updating
$ go get -u github.com/classzz/classzz/mining
License
Package mining is licensed under the copyfree ISC License.
# Packages
No description provided by the author
# Functions
CalcPriority returns a transaction priority given a transaction and the sum of each of its input values multiplied by their age (# of confirmations).
DisableLog disables all library log output.
MinimumMedianTime returns the minimum allowed timestamp for a block building on the end of the provided best chain.
NewBlkTmplGenerator returns a new block template generator for the given policy using transactions from the provided transaction source.
UseLogger uses a specified Logger to output package logging info.
# Constants
CoinbaseFlags is added to the coinbase script of a generated block and is used to monitor BIP16 support as well as blocks that are generated via classzz.
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
BlkTmplGenerator provides a type that can be used to generate block templates based on a given mining policy and source of transactions to choose from.
BlockTemplate houses a block that has yet to be solved along with additional details about the fees and the number of signature operations for each transaction in the block.
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.
# Interfaces
TxSource represents a source of transactions to consider for inclusion in new blocks.
# Type aliases
TxSorter implements sort.Interface to allow a slice of block headers to be sorted by timestamp.