Skip to main content

Module testnet

Module testnet 

Source
Expand description

Types and implementation for Testnet consensus parameters

Structs§

ConfiguredActivationHeights
Configurable activation heights for Regtest and configured Testnets.
ConfiguredFundingStreamRecipient
Configurable funding stream recipient for configured Testnets.
ConfiguredFundingStreams
Configurable funding streams for configured Testnets.
ConfiguredLockboxDisbursement
Configurable one-time lockbox disbursement recipients for configured Testnets.
Parameters
Network consensus parameters for test networks such as Regtest and the default Testnet.
ParametersBuilder
Builder for the Parameters struct.
RegtestParameters
A struct of parameters for configuring Regtest in Zebra.

Enums§

ConfiguredCheckpoints
Configurable checkpoints, either a path to a checkpoints file, a “default” keyword to indicate that Zebra should use the default Testnet checkpoints, or a list of block heights and hashes.

Constants§

MAX_HRP_LENGTH
Maximum length for a configured human-readable prefix.
MAX_NETWORK_NAME_LENGTH
Maximum length for a configured network name.
PRE_BLOSSOM_REGTEST_HALVING_INTERVAL 🔒
The halving height interval in the regtest is 6 hours. zcashd regtest halving interval
REGTEST_GENESIS_HASH 🔒
The block hash of the Regtest genesis block, zcash-cli -regtest getblockhash 0
RESERVED_NETWORK_NAMES
Reserved network names that should not be allowed for configured Testnets.
TESTNET_GENESIS_HASH 🔒
The block hash of the Testnet genesis block, zcash-cli -testnet getblockhash 0

Statics§

DEFAULT_TESTNET_PARAMETERS 🔒
Build directly from the uncached builder so initialization never re-enters this cache.

Functions§

check_branch_id 🔒
Returns an error if upgrade needs a consensus branch ID and branch_ids has none for it.
check_funding_stream_address_period 🔒
Checks that the provided FundingStreams has sufficient recipient addresses for the funding stream address period of the provided Network.
check_funding_streams 🔒
Checks effective funding stream ranges and recipient types for Testnet and Regtest.
num_funding_stream_addresses_required_for_height_range 🔒
Returns the number of funding stream address periods there are for the provided network and height range.