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

pd: review pass on config template defaults #4637

Merged
merged 2 commits into from
Jun 18, 2024
Merged

Conversation

erwanor
Copy link
Member

@erwanor erwanor commented Jun 17, 2024

Describe your changes

This is a review on consensus params template defaults which are a bit dated like @dynst noticed.

The diff of changes:

  • We align evidence retention on the staking component's unbonding_delay (about 130k blocks, 650k seconds)
  • we limit the evidence portion of a block to 30KB
  • it updates the default epoch_duration to 17280 blocks (about 1 day at 5s/block)

We implement validation in a follow-up PR (#4627)

Issue ticket number and link

Context in: #4635 #4632 #4629

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

    Template changes

@conorsch
Copy link
Contributor

So far so good. Thanks for taking the time to annotate the default values with descriptive comments. Standing by to provide final review, after which I'll incorporate any changed values into the migration script for #4614.

Comment on lines +304 to +305
// 30KB
max_bytes: 30000,
Copy link
Contributor

Choose a reason for hiding this comment

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

This closes #4635!

@faddat There aren't any issues with a 1MiB block size and a 30KB evidence limit, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

Great, thanks for opening that issue.

@erwanor erwanor marked this pull request as ready for review June 18, 2024 17:01
@erwanor
Copy link
Member Author

erwanor commented Jun 18, 2024

I will follow up with putting the template defaults into consts that can be pulled from the app crate.

@conorsch conorsch merged commit 31e75b9 into main Jun 18, 2024
13 checks passed
@conorsch conorsch deleted the erwan/consensus_param_pass branch June 18, 2024 17:06
@erwanor erwanor self-assigned this Jun 18, 2024
@erwanor erwanor added the A-node Area: System design and implementation for node software label Jun 18, 2024
@erwanor erwanor added this to the Sprint 8 milestone Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-node Area: System design and implementation for node software
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants