Skip to content
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

Merged

Conversation

guilhermelawless
Copy link
Contributor

New option work_watcher_period defaulting to 5 seconds.

Also moved the condition.wait to the end of the loop so that stopped is checked before going through blocks.

@guilhermelawless guilhermelawless self-assigned this Aug 16, 2019
@guilhermelawless guilhermelawless added documentation This item indicates the need for or supplies updated or expanded documentation enhancement toml TOML related change labels Aug 16, 2019
@guilhermelawless guilhermelawless added this to the V20.0 milestone Aug 16, 2019
@SergiySW
Copy link
Contributor

Are all timings in config currently in ms?

@guilhermelawless
Copy link
Contributor Author

I believe so, but documentation covers it. Do we need that much control?

@guilhermelawless
Copy link
Contributor Author

@SergiySW there are 2 instances of times in seconds: tcp_io_timeout and IPC transport timeout.

@SergiySW
Copy link
Contributor

I guess we need check for it to not be 0?

@cryptocode
Copy link
Contributor

@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.

@guilhermelawless
Copy link
Contributor Author

@cryptocode it's best to refer to the nano-docs PR in case it changes. That's a one liner in the config documentation.

@guilhermelawless guilhermelawless merged commit c999d5f into nanocurrency:master Aug 19, 2019
@guilhermelawless guilhermelawless deleted the configurable-rework branch August 19, 2019 22:06
cryptocode added a commit to cryptocode/raiblocks that referenced this pull request Aug 20, 2019
cryptocode added a commit that referenced this pull request Aug 23, 2019
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation This item indicates the need for or supplies updated or expanded documentation enhancement toml TOML related change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants