-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(regtest): Add regtest halving interval and port test (#8888)
* add halving interval to regtest and to custom testnet * add nuparams.py rpc test * fix inconsistency in nu6 name in rpc methods * rename `halving_interval` to `pre_blossom_halving_interval` in the config * make fixes * Suggestion for "feat(regtest): Add regtest halving interval and port test" (#8894) * adds `height_for_halving_index()` and `num_halvings()` fns * avoid unnecessary panic * avoid using constant pre/post blossom halving intervals in num_halvings() * make regtest and testnet constant more private * move `height_for_halving_index` * fmt * add a `funding_stream_address_change_interval` method * add checked operations to `height_for_halving_index` fn * add post_blossom interval as paramneters + other refactors * rename function * fix docs * move constant * Updates `new_regtest()` method to return a Testnet without funding streams, updates funding stream setter methods to set a flag indicating that parameters affecting the funding stream address period should be locked, updates the setter methods for parameters that affect the funding stream address period to panic if those parameters should be locked. (#8921) --------- Co-authored-by: Arya <[email protected]>
- Loading branch information
1 parent
8cd4d96
commit f2e7bc9
Showing
11 changed files
with
586 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.