[−][src]Module bitcoin::blockdata::constants
Blockdata constants
This module provides various constants relating to the blockchain and consensus code. In particular, it defines the genesis block and its single transaction
Constants
COIN_VALUE | How many satoshis are in "one bitcoin" |
DIFFCHANGE_INTERVAL | How many blocks between diffchanges |
DIFFCHANGE_TIMESPAN | How much time on average should occur between diffchanges |
MAX_BLOCK_WEIGHT | The maximum allowed weight for a block, see BIP 141 (network rule) |
MAX_SEQUENCE | The maximum allowable sequence number |
MIN_TRANSACTION_WEIGHT | The minimum transaction weight for a valid serialized transaction |
TARGET_BLOCK_SPACING | How many seconds between blocks we expect on average |
WITNESS_SCALE_FACTOR | The factor that non-witness serialization data is multiplied by during weight calculation |
Functions
genesis_block | Constructs and returns the genesis block |
max_money | The maximum value allowed in an output (useful for sanity checking, since keeping everything below this value should prevent overflows if you are doing anything remotely sane with monetary values). |
max_target | In Bitcoind this is insanely described as ~((u256)0 >> 32) |