-
Notifications
You must be signed in to change notification settings - Fork 259
Add support for consensus parameters override #751
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
Conversation
coderofstuff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please document how to use this. Maybe via:
- Add a new file in docs for how to use it (docs/override-params.md)
- Update README.md to have a reference to override-params.md
coderofstuff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved with suggestions.
| conn_builder = conn_builder.with_mem_budget(rocksdb_mem_budget); | ||
| } | ||
|
|
||
| if let Some(output_path) = args.override_params_output { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's worth documenting this usage in override-params.md - that you can construct a starter JSON through simpa
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's already there, in the last section
README.md
Outdated
| </details> | ||
| </details> | ||
|
|
||
| ## Override consensus parameters |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

The goal of this PR is to support changing consensus constants for test purposes, without editing the code and recompiling.