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.
Structs§
- The uniquely identifying hash of the target blockchain.
Constants§
- Number of blocks needed for an output from a coinbase transaction to be spendable.
- How many blocks between diffchanges.
- How much time on average should occur between diffchanges.
- The maximum allowed number of signature check operations in a block.
- Maximum allowed value for an integer in Script.
- The maximum allowed script size.
- Mainnet (bitcoin) pubkey address prefix.
- Test (tesnet, signet, regtest) pubkey address prefix.
- Mainnet (bitcoin) script address prefix.
- Test (tesnet, signet, regtest) script address prefix.
- How may blocks between halvings.
- How many seconds between blocks we expect on average.
- The factor that non-witness serialization data is multiplied by during weight calculation.
Functions§
- Constructs and returns the genesis block.