Expand description
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
Statics§
- 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_
SEQUENCE - The maximum allowable sequence number
- TARGET_
BLOCK_ SPACING - How many seconds between blocks we expect on average
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)