Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

configuration: validation_upgrade_delay consistency #4583

Merged
merged 1 commit into from
Dec 28, 2021

Conversation

pepyakin
Copy link
Contributor

@pepyakin pepyakin commented Dec 22, 2021

Closes #4248

Impose additional constraint on configuration consistency:
validation_upgrade_delay should not be less than or equal to 1.

See the original issue for more details.

TODO:

  • fix the default chainspec

@pepyakin
Copy link
Contributor Author

pepyakin commented Dec 22, 2021

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions github-actions bot added the A0-please_review Pull request needs code review. label Dec 22, 2021
@pepyakin pepyakin added B0-silent Changes should not be mentioned in any release notes C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed. labels Dec 22, 2021
@pepyakin pepyakin force-pushed the pep-configuration-go-ahead-consistency branch from 5375a1d to 6b99e28 Compare December 22, 2021 15:22
@pepyakin pepyakin added A3-in_progress Pull request is in progress. No review needed at this stage. B1-releasenotes and removed A0-please_review Pull request needs code review. B0-silent Changes should not be mentioned in any release notes labels Dec 22, 2021
@pepyakin pepyakin force-pushed the pep-configuration-go-ahead-consistency branch from 6b99e28 to 609c38a Compare December 24, 2021 14:43
@pepyakin pepyakin added A0-please_review Pull request needs code review. and removed A3-in_progress Pull request is in progress. No review needed at this stage. labels Dec 27, 2021
@pepyakin pepyakin force-pushed the pep-configuration-go-ahead-consistency branch from 609c38a to 3a94ef4 Compare December 27, 2021 14:25
Base automatically changed from pep-pvf-consistency-checks to master December 28, 2021 13:53
Closes #4248

Impose additional constraint on configuration consistency:
`validation_upgrade_delay` should not be less than or equal to 1.

See the original issue for more details.
@pepyakin pepyakin force-pushed the pep-configuration-go-ahead-consistency branch from 3a94ef4 to f058f30 Compare December 28, 2021 13:57
@pepyakin pepyakin merged commit 3490833 into master Dec 28, 2021
@pepyakin pepyakin deleted the pep-configuration-go-ahead-consistency branch December 28, 2021 15:46
@bkchr
Copy link
Member

bkchr commented Dec 28, 2021

Did you tested this with a lag in availability voting? The delay is calculated from the block the pov was build on and not the one it was enacted?

@pepyakin
Copy link
Contributor Author

For the record, @bkchr meant problem described in this PR #4246. That problem is solved by a previous PR in the stack: #4580.

It puts a constraint that minimum_validation_upgrade_delay 1 must be greater than both chain_availability_period and thread_availability_period.

Footnotes

  1. the number of blocks that must pass from enacting a candidate that signals an upgrade to the relay chain block number which will be the first relay-parent when the code upgrade is applied.

drahnr pushed a commit that referenced this pull request Jan 4, 2022
Closes #4248

Impose additional constraint on configuration consistency:
`validation_upgrade_delay` should not be less than or equal to 1.

See the original issue for more details.
Wizdave97 pushed a commit to ComposableFi/polkadot that referenced this pull request Feb 3, 2022
Closes paritytech#4248

Impose additional constraint on configuration consistency:
`validation_upgrade_delay` should not be less than or equal to 1.

See the original issue for more details.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-please_review Pull request needs code review. C1-low PR touches the given topic and has a low impact on builders. D5-nicetohaveaudit ⚠️ PR contains trivial changes to logic that should be properly reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Go-ahead signal makes validation upgrade delay of less than 2 invalid
3 participants