-
Notifications
You must be signed in to change notification settings - Fork 52
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
Add lookahead collator and enable async backing in all runtimes #448
Conversation
Coverage Report@@ Coverage Diff @@
## master agustin-lookahead-collator +/- ##
==============================================================
- Coverage 67.55% 65.08% -2.47%
+ Files 63 64 +1
+ Lines 9166 9515 +349
==============================================================
Hits 6192 6192
+ Misses 2974 3323 +349
|
@Agusrodri the zombienet tests do not work because you are pointing at a custom polkadot branch. Once you cherry-pick in the 1.6.0 branch all will be good |
Fixes a rare bug where collators will try to build a block before the runtime upgrade using the slot duration from the latest block, which is after the runtime upgrade, resulting in a stall
Let's not forget to modify the inflation rate to match the new expectations |
@Agusrodri make sure you merge master in please, that should make your tests more robust against the CI |
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.
Looks good to me. As discussed, we will handle cancellation token in different PR.
Some minor questions, which are not blocker.
What does it do?
Following #399, this PR adds an implementation for the
lookahead
collator client.With this collator, we now can enable asynchronous backing and leverage all its new functionalities, like the six seconds blocktime and also producing parachain blocks on top of other para-blocks that were not included in the relay yet (unincluded segment). Without the
lookahead
collator, these features could not be implemented as the other kind of collator (basic
) allows to produce blocks only in the old way without async-backing enabled.