Skip to main content

Module mining

Module mining 

Source
Expand description

Mining config

StructsΒ§

Config
Mining configuration section.
ExtraCoinbaseData
Operator-configured data appended to the coinbase input of every block Zebra builds, after Zebra’s πŸ¦“ marker and : separator.
ExtraCoinbaseDataTooLong
The error returned when ExtraCoinbaseData is constructed from too many bytes.
MINER_ADDRESS πŸ”’
MinerAddressTypeIter
An iterator over the variants of MinerAddressType

EnumsΒ§

MinerAddressType
The desired address type for the mining.miner_address field in the config.

ConstantsΒ§

MAX_MINER_DATA_LEN πŸ”’
The maximum length of the optional, arbitrary data in the script sig field of a coinbase tx.
MAX_USER_COINBASE_DATA_LEN πŸ”’
The maximum length of the user-configurable extra_coinbase_data.
ZEBRA_COINBASE_MARKER πŸ”’
The marker Zebra prepends to the coinbase input of every block it builds.
ZEBRA_COINBASE_SEPARATOR πŸ”’
Separates ZEBRA_COINBASE_MARKER from extra_coinbase_data. Present only when that is set.

FunctionsΒ§

default_miner_address
Returns the hard-coded default miner address string for a given network and address type.