package
1.9.25
Repository: https://github.com/p9c/pod.git
Documentation: pkg.go.dev

# README

mining

ISC License GoDoc

Overview

This package contains an implementation of block construction for mining purposes. This package is currently a work in progress.

Installation and Updating

$ go get -u github.com/p9c/pod/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).
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.
RefillMiningAddresses adds new addresses to the mining address pool for the miner todo: make this remove ones that have been used or received a payment or mined.

# 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 pod.
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.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
No description provided by the author
Policy houses the policy (configuration parameters) which is used to control the generation of block templates.
No description provided by the author

# Interfaces

No description provided by the author