Parse protocol constants from the 'parameters-<proto>.json' in 'voting.py'
Clarification and motivation
To support new protocol in local-chain
we need to define its protocol parameters in 2 places:
-
parameters-<proto>.json
file -
default_<proto>_protocol_parameters
variable in thevoting.py
Since they should be equal, we can just parse the parameters-<proto>.json
in the voting.py
and not to duplicate the constants there. It will reduce the amount of routine work when supporting new protocols and save us from the cases when we updated the constants only in one of these files.
Acceptance criteria
- Protocol parameters in the
voting.py
are defined as parsing the correspondingparameters-<proto>.json
file