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

[3.2] Add chain api get_consensus_parameters #692

Merged
merged 3 commits into from
Jul 20, 2022

Conversation

ClaytonCalabrese
Copy link
Contributor

EOSIO/eos#10898

Add chain api endpoint and cleos get command to retrieve consensus parameters.

Resolves #453

@ClaytonCalabrese ClaytonCalabrese added 3.2 Candidate OCI OCI working this issue... labels Jul 18, 2022
@ClaytonCalabrese ClaytonCalabrese self-assigned this Jul 18, 2022
get_consensus_parameters_results results;

results.chain_config = db.get_global_properties().configuration;
results.kv_database_config = db.get_global_properties().kv_configuration;
Copy link
Member

@heifner heifner Jul 18, 2022

Choose a reason for hiding this comment

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

Remove this line. kv_configuration should not exist in Mandel and needs to be removed (or repurposed in the future).

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 in mandel ever since #8. Should an issue be made for its removal?

Copy link
Member

Choose a reason for hiding this comment

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

using get_consensus_parameters_params = empty;
struct get_consensus_parameters_results {
chain::chain_config chain_config;
chain::kv_database_config kv_database_config;
Copy link
Member

Choose a reason for hiding this comment

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

Remove this line and also from the FC_REFLECT

@ClaytonCalabrese ClaytonCalabrese merged commit 423b20a into main Jul 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.2 Candidate OCI OCI working this issue...
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Backport: add chain API get_consensus_parameters
3 participants