-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tracking: Add parameters to Network::Testnet
variant
#7845
Comments
Lowering priority as it's not clear that it's a blocker for ZSA testing anymore |
Elevating priority so ZSAs can be tested with a new genesis block. |
Mining a new genesis block is out of scope for this ticket. It's an extremely tricky process, let's check what (It's possible they just re-use the mainnet or testnet block for all networks.) |
zcashd uses a separate genesis block for testnet, and does not support multiple testnets without modifying code and rebuilding. Is it sufficient to just use that block and upgrade at height 1? |
@arya2 let's ask the QEDIT team when we get in touch with them? (Along with everything else, it's not an urgent question.) |
Network::Testnet
variantNetwork::Testnet
variant
@arya2 can you split out what we're going to work on from here on Sprint 24? |
Motivation
Zebra currently hard-codes some consensus parameters that may need to be changed for testing.
Scope
To be discussed in #7967.
Preparatory Refactors:
is_mainnet()
to look up test vectors using new functions inzebra-test
#8325Testnet
to use a new Network method for each consensus rule #8326NetworkParameters
struct toNetwork::Testnet
#7968After these changes are merged, we should decide which parameters we want to add and create more issues like #7970 for each of them.
Adding Parameters:
TestnetParameters
#7970disable_peers
field totestnet::Parameters
#8361debug_disable_pow_check
field toNetwork
#8362name
field toNetworkParameters
to be used at the end of the cache dir path #8327Regtest
genesis block from zcashd #8412default_port
field toNetworkParameters
(needed for custom Testnets but not Regtest)TESTNET_{MINIMUM_DIFFICULTY/MAX_TIME}_START_HEIGHT
constants to fields onNetworkParameters
#8364zcash_primitives::consensus::Parameters
forNetwork
to passnetwork
totry_sapling_output_recovery()
directly #8365genesis_hash
field toNetworkParameters
#8366NetworkParameters
#8367Possible Design
Testnet
variant into:slow_start_interval
(nSubsidySlowStartInterval)target_difficulty_limit
(powLimit)key_prefixes
debug_mandatory_checkpoint_height: Option<Height>
checkpoints: Path
pow_avg_window
(update logic to usemin(num_blocks_in_cache, 17)
)new_testnet()
method orDEFAULT_TESTNET
constant with the existing testnet defaults, to replace literalTestnet
variant.Testnet
with anis_mainnet()
method. (This is only required when we're matching againstTestnet
, we can change theMainnet
matches gradually.)The text was updated successfully, but these errors were encountered: