Skip to main content

Module constants

Module constants 

Source
Expand description

Constants for block subsidies.

Modulesยง

mainnet ๐Ÿ”’
Mainnet-specific constants for block subsidies.
regtest ๐Ÿ”’
Regtest-specific constants for block subsidies.
testnet ๐Ÿ”’
Testnet-specific constants for block subsidies.

Constantsยง

BLOSSOM_POW_TARGET_SPACING_RATIO ๐Ÿ”’
Used as a multiplier to get the new halving interval after Blossom.
FUNDING_STREAM_RECEIVER_DENOMINATOR ๐Ÿ”’
Denominator as described in protocol specification ยง7.10.1.
FUNDING_STREAM_SPECIFICATION ๐Ÿ”’
The specification for pre-NU6 funding stream receivers, a URL that links to ZIP-214.
LOCKBOX_SPECIFICATION ๐Ÿ”’
The specification for post-NU6 funding stream and lockbox receivers, a URL that links to ZIP-1015.
MAX_BLOCK_SUBSIDY ๐Ÿ”’
The largest block subsidy, used before the first halving.
POST_BLOSSOM_HALVING_INTERVAL ๐Ÿ”’
After Blossom the block time is reduced to 75 seconds but halving period should remain around 4 years.
POST_NU6_FUNDING_STREAM_NUM_BLOCKS ๐Ÿ”’
The number of blocks contained in the post-NU6 funding streams height ranges on Mainnet or Testnet, as specified in ZIP-1015.
PRE_BLOSSOM_HALVING_INTERVAL ๐Ÿ”’
Halving is at about every 4 years, before Blossom block time is 150 seconds.