multi: Resurrect regression network. #1480
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This resurrects the regression test network that was removed before initial launch although it really should not have been. The simulation test network and the regression test network do not serve the same purpose. Specifically, the regression test network is intended for unit tests, RPC server tests, and consensus tests. On the other hand, the simulation test network is intended for private use within a group of individuals doing simulation testing and full integration tests between different applications such as wallets, voting service providers, mining pools, block explorers, and other services that build on Decred.
Keeping the concerns separate will allow the simulation test network to be modified in ways such as activating consensus changes that have been successfully voted into
mainnet
without also needing to vote them in on the simulation test network while still preserving the ability for the unit tests to properly test the voting semantics and handling to help prevent regressions.In addition to resurrecting the regression test network, this also fully fleshes out new values for the various addresses prefixes (
Rk
,Rs
,Re
, etc), HD key prefixes (rprv
,rpub
), and treasury multisig details.As a part of resurrecting the network, a new CLI flag
--regnet
is added to allow the RPC test harness connect to a running instance, the areas of the code which involve votes have been modified to allow thevotes to apply to the new network, and tests have been added to the relevant modules.
This bumps the affected module versions as follows:
The
blockchain
module is also affected, but since its version has already been bumped since the last release tag, it is not bumped again.Finally, this does not include switching unit tests or the RPC test harness over the new network since that will be done in a separate commit.