Module constants

Source
Expand description

Constant values used in mining rpcs methods.

Constants§

DEFAULT_SOLUTION_RATE_WINDOW_SIZE
The default window size specifying how many blocks to check when estimating the chain’s solution rate.
GET_BLOCK_TEMPLATE_CAPABILITIES_FIELD
A hardcoded list of Zebra’s getblocktemplate RPC capabilities.
GET_BLOCK_TEMPLATE_MEMPOOL_LONG_POLL_INTERVAL
When long polling, the amount of time we wait between mempool queries. (And sync status queries, which we do right before mempool queries.)
GET_BLOCK_TEMPLATE_MUTABLE_FIELD
A hardcoded list of fields that the miner can change from the block template.
GET_BLOCK_TEMPLATE_NONCE_RANGE_FIELD
A range of valid block template nonces, that goes from u32::MIN to u32::MAX as a string.
MAX_ESTIMATED_DISTANCE_TO_NETWORK_CHAIN_TIP
The max estimated distance to the chain tip for the getblocktemplate method.
NOT_SYNCED_ERROR_CODE
The RPC error code used by zcashd for when it’s still downloading initial blocks.
ZCASHD_FUNDING_STREAM_ORDER
The funding stream order in zcashd RPC responses.