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.

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

Functionsยง

check_funding_stream_address_period ๐Ÿ”’
Checks that the provided FundingStreams has sufficient recipient addresses for the funding stream address period of the provided Network.
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.