-
Notifications
You must be signed in to change notification settings - Fork 456
Move exceptions.js file to be part of config.json to simplify config structure #3309
Comments
@SargeKhan is working in exceptions now @nazarhussain so you might want to check with him before going ahead with this one |
The change here has no relation to how we process the exceptions. Its just the matter of keeping a separate file. |
Although the change was straight forward but just noticed one edge case. The exceptions file is a So if we move the exceptions to config file, we have to update the usage of exceptions accordingly. |
@shuse2 There are a lot of comments in the exception files And these are useful for our reference. If I move exceptions to So what direction we should now?
@MaciejBaj The issue was intended by your directions to have only one config file for each network. So your opinion is also required on it. |
After discussion, we will convert it to JSON, but document the details in README |
Move exceptions.js file to be part of config.json to simplify config structure - Closes #3309
Expected behavior
There should be only one configuration file for one network.
Actual behavior
Right now we have one file
exceptions.js
for each network, which actually is part of configurations at keymodules.chain.exceptions
. Using the following code;https://github.com/LiskHQ/lisk/blob/c75591a52864d408828c29d410859902c5bffd13/src/index.js#L79
To avoid any confusion we should merge the exception file into actual
config.json
for each network and remove the above code line. This will simplify the config structure and help to understand it easily that exceptions are actually options for chain module.Which version(s) does this affect? (Environment, OS, etc...)
1.7
The text was updated successfully, but these errors were encountered: