-
Notifications
You must be signed in to change notification settings - Fork 683
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(fork-network): override configs at SetValidatorsCmd (#12575)
I've made two observations: * `num_seats` is not propagated to forknet in `set-validators` command, like it was done in `amend-genesis` * the actual node dir preparation happens at `set-validators`, not `init_configs` So I suggest to move epoch config overrides to `set-validators` as well. It looks very natural. I think we can always assume that `genesis_protocol_version` is the first version, and then pass epoch config overrides through `new-test` to `set-validators`. I used this for forknet resharding and it worked well. If epoch config overrides happen at init_configs, then, after init and before new-test, forknet nodes will be in weird state where epoch configs are already overridden but genesis isn't.
- Loading branch information
1 parent
beb00f4
commit f4c7f53
Showing
6 changed files
with
70 additions
and
58 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
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
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
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
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
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