-
Notifications
You must be signed in to change notification settings - Fork 1.6k
paras: count upgrade delay from inclusion #7486
paras: count upgrade delay from inclusion #7486
Conversation
…de-from-inclusion
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, so after this issue you will have the full validation_upgrade_delay instead of validation_upgrade_delay - 10 or 20. Sounds like we spent more time discussing here than the issue is worthwhile :D (sorry) But this also doesn't sound like a big problem or solves that much (as we theoretically can still run into this problem).
Yeah exactly! It's not a big issue.
This seems like a partial solution to a very contrived scenario, so not sure how helpful this change is.
I also have trouble following the example #4601 (comment)
Because the candidate with relay-parent 1939 is invalid nodes will dispute it, however, they won't be able since the new code is not available.
Wouldn't nodes disputing candidate with relay parent 1939 fetch PVF from that block or some recent block and not inclusion block?
recent_head, |
The problem is it won't be available. The code gets stored on candidate's inclusion, however the delay for its enactment is counted from candidate's relay parent. So in total we're off by
It is partial in a sense that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned in the original issue, this is strictly more correct now that code upgrades are handled with on-chain signals as opposed to coordinated block numbers. The GoAheadSignal
infrastructure has been in place for over a year now, so all chains definitely make use of it.
Nit: I really don't like the term "inclusion parent", since the 'parent' part isn't important for this case. |
bot merge |
Error: Statuses failed for 18f8932 |
…de-from-inclusion
bot merge |
Waiting for commit status. |
Merge cancelled due to error. Error: Statuses failed for 2654579 |
CI failure seems to be unrelated |
…de-from-inclusion
bot merge |
Waiting for commit status. |
Resolves #4601