-
Notifications
You must be signed in to change notification settings - Fork 781
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parachains-Aura: Only produce once per slot (#3308)
Given how the block production is driven for Parachains right now, with the enabling of async backing we would produce two blocks per slot. Until we have a proper collator implementation, the "hack" is to prevent the production of multiple blocks per slot. Closes: #3282
- Loading branch information
Showing
4 changed files
with
60 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
title: Parachains-Aura: Only produce once per slot | ||
|
||
doc: | ||
- audience: Node Dev | ||
description: | | ||
With the introduction of asynchronous backing the relay chain allows parachain to include blocks every 6 seconds. | ||
The Cumulus Aura implementations, besides the lookahead collator, are building blocks when there is a free slot for | ||
the parachain in the relay chain. Most parachains are still running with a 12s slot duration and not allowing | ||
to build multiple blocks per slot. But, the block production logic will be triggered every 6s, resulting in error | ||
logs like: "no space left for the block in the unincluded segment". This is solved by ensuring that we don't build | ||
multiple blocks per slot. | ||
|
||
crates: | ||
- name: "cumulus-client-consensus-aura" |
aa68ea5
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.
This commit has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/async-backing-development-updates/6176/7