-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[GOT-32] Reconsider the .json validator configuration file #317
Comments
Adding a note: we should probably move the |
The idea of splitting the config into two groups, protocol level, and validator level, makes sense to me. re: move config out of sub folders. |
The current
config.json
validation configuration file looks reasonable, but I believe it has some problems.In the same configuration file, we have two big groups of configurations:
TableContraints
,QueryConstraints
, SC-addresses, etc.In my opinion, a problem arises when we do some protocol-level configuration change. If people use that
config.json
configuration file with docker-compose, if we edit any field, it might conflict with any other edition the validator has done in the file. For example, it feels very odd if the validator edited the port number or any other validator-related configuration.Moreover, the "Protocol level configuration" fields shouldn't be changed by validators since they're part of the protocol. This makes the
config.json
file be somewhat confusing.If I'm a validator, and I look at
config.json
, it isn't clear which fields I can change and which ones I must not change.I feel it would be better to have these two groups live in different places. For example, it might make sense to leave the protocol level configurations hard-coded and migrated by the code in the SQLite table and not in the config file. (This is just an idea).
We should reflect on this and see if we can do better. Open to suggestions.
GOT-32
The text was updated successfully, but these errors were encountered: