Expand description
This module provides configuration and parameters for different Bitcoin networks (mainnet, testnet, signet, and regtest).
It includes:
- Network-specific parameters like block reward halving intervals and maturity periods
- DNS seeds for peer discovery
- Assumable validation states for Utreexo
- Block verification flag exceptions
The main struct ChainParams encapsulates all chain-specific parameters while
DnsSeed handles peer discovery through DNS.
Structs§
- Assume
Utreexo Value - If enabled, the node will assume that the provided Utreexo state is valid, and will start running from there. You may use this to make your node start faster, but you should be sure that the provided state is valid. You may or not verify the state, by downloading all blocks on background, and then verifying the final Utreexo state.
- Chain
Params - This struct encapsulates all chain-specific parameters.
- DnsSeed
- A dns seed is a authoritative DNS server that returns the IP addresses of nodes that are likely to be accepting incoming connections. This is our preferred way of finding new peers on the first startup, as peers returned by seeds are likely to be online and accepting connections. We may use this as a fallback if we don’t have any peers to connect in subsequent startups.
Functions§
- get_
chain_ dns_ seeds - This function returns the DNS seeds for the given network.