-
Notifications
You must be signed in to change notification settings - Fork 795
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
Configurable work watcher period #2222
Configurable work watcher period #2222
Conversation
Are all timings in config currently in ms? |
I believe so, but documentation covers it. Do we need that much control? |
@SergiySW there are 2 instances of times in seconds: |
I guess we need check for it to not be 0? |
@guilhermelawless for the toml PR: could you attach a comment here with a suitable one-liner description of the new config option? No need to mention data type or default value as the toml file will contain those. |
@cryptocode it's best to refer to the nano-docs PR in case it changes. That's a one liner in the config documentation. |
* TOML config file support and migration * Add config override support via a CLI option * Incorporate config changes from #2214 * Remove deprecation as this currently fails to compile on CI * Add default empty vector to read_node_config_toml * Make sure override streams are not empty * Adjust unit tests with changed base/override order * Incorporate config changes from #2198 and reorder some methods * httpcallback section, and documentation improvements * Clarify data type for wallet account, formatting * CI formatting * Improved node config unit test coverage, address review feedback * Full node and rpc config file coverage. Fix httpcallback deserialization. * Improve toml diff test * Use const ref in toml config, fix schema type for rpc_path * Incorporate work watcher period from #2222 * Add work_watcher_period validation as well as unit test
New option
work_watcher_period
defaulting to 5 seconds.Also moved the
condition.wait
to the end of the loop so thatstopped
is checked before going through blocks.