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

UpgradeRestrictionSignal is one block off #3971

Closed
pepyakin opened this issue Sep 29, 2021 · 1 comment · Fixed by #4603
Closed

UpgradeRestrictionSignal is one block off #3971

pepyakin opened this issue Sep 29, 2021 · 1 comment · Fixed by #4603
Labels
I3-bug Fails to follow expected behavior.

Comments

@pepyakin
Copy link
Contributor

pepyakin commented Sep 29, 2021

Assume UpgradeRestrictionSignal is set. If UpgradeRestrictionSignal is unset at the relay-block B, then a parablock that signals an upgrade built with the relay-parent B-1 can be accepted. However, the post-state at B-1 forbids an upgrade since UpgradeRestrictionSignal is set. That means a non-🤠 parachain will not risk upgrading until it builds a parablock at B where the upgrade restriction is lifted.

A potential solution is to unset UpgradeRestrictionSignal at on_finalize not in on_initialize.

@pepyakin pepyakin added the I3-bug Fails to follow expected behavior. label Sep 29, 2021
@pepyakin pepyakin changed the title UpgradeRestrictionSignal is one block more restrictive UpgradeRestrictionSignal is one block off Sep 29, 2021
@rphmeier
Copy link
Contributor

Nice catch, should be an easy fix too.

pepyakin added a commit that referenced this issue Dec 24, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
pepyakin added a commit that referenced this issue Dec 27, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
pepyakin added a commit that referenced this issue Dec 28, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
pepyakin added a commit that referenced this issue Dec 28, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
pepyakin added a commit that referenced this issue Dec 30, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
pepyakin added a commit that referenced this issue Dec 30, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
paritytech-processbot bot pushed a commit that referenced this issue Dec 31, 2021
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
drahnr pushed a commit that referenced this issue Jan 4, 2022
Closes #3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: #4457 (comment)
Wizdave97 pushed a commit to ComposableFi/polkadot that referenced this issue Feb 3, 2022
Closes paritytech#3971

Read the linked issue.

Apart from that, this addresses the concern raised in this [comment] by
just adding a test. I couldn't find a clean way to reconcile a block
number delay with a PVF voting TTL, so I just resorted to rely on the
test. Should be fine for now.

[comment]: paritytech#4457 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I3-bug Fails to follow expected behavior.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants