Scripts, Sandbox-client: Use [protocol] from [active-protocol] script-input for aliases registering
What
MR part of the refactoring of src/bin_client/octez-init-sandbox-client.sh
Instead of hardcoding the protocols information in the script, we now use active-protocol.
The script now registers the aliases, used to activate the protocols in the sandbox network, directly from these inputs..
Depends on !15497 (merged)
A follow-up MR will update the output from the script accordingly.
Why
We avoid hardcoding the protocols in the script, so that it doesn't need to be changed for every new protocol added or removed.
How
Manually testing the MR
- Run a sandbox node with
src/bin_node/octez-sandbox-node.sh 1 - Run
eval 'src/bin_client/octez-init-sandbox-client.sh 1' - Check the aliases and try to activate one of the procols (
octez-activate-alpha,octez-activate-020-PtParisC,...)
Checklist
-
Document the interface of any function added or modified (see the coding guidelines) -
Document any change to the user interface, including configuration parameters (see node configuration) -
Provide automatic testing (see the testing guide). -
For new features and bug fixes, add an item in the appropriate changelog ( docs/protocols/alpha.rstfor the protocol and the environment,CHANGES.rstat the root of the repository for everything else). -
Select suitable reviewers using the Reviewersfield below. -
Select as Assigneethe next person who should take action on that MR
Edited by Killian Delarue