Skip to content

Conversation

@someone235
Copy link
Contributor

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

Copy link
Collaborator

@coderofstuff coderofstuff left a 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
coderofstuff previously approved these changes Nov 10, 2025
Copy link
Collaborator

@coderofstuff coderofstuff left a 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 {
Copy link
Collaborator

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

Copy link
Contributor Author

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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add this documentation as a section below Logging?

Screenshot 2025-11-10 at 9 10 09 AM

Also add update the text slightly to: "You can experiment with non-standard consensus parameters in non-mainnet environments by supplying..." (I know that's mentioned in the override-params.md, but I think it's also worth mentioning here.)

@coderofstuff coderofstuff merged commit 8539dd4 into kaspanet:master Nov 10, 2025
6 checks passed
@someone235 someone235 deleted the override-params branch November 11, 2025 07:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants