-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Update collator-protocol for asynchronous backing #5054
Comments
We'd use For validators: We'll need to make use of We should only fetch & second collations that are either built on top of the root of some fragment tree or have a parent which is backed. We could relax this somewhat to fetch & second collations that are built on top of a Seconded candidate which we've validated locally, but that'd be more complex and the 'backed' rule should work OK although it's not as efficient. We need the collation-fetching response to be more sanity-checked to make sure it actually matches the stuff in the announcement. We also need to obey the rule that we only second 1 block per depth per active leaf (as opposed to implied relay-parent!) For collators: Less needs to change here: we'd use the same implied ancestry logic to figure out what we're allowed to advertise to validators that we're connected to, and we'd need to keep around more stuff in memory to answer requests. |
Because it just tripped me again: 'backed' in this context means we have seen enough votes to consider it backed - it is not yet backed on chain, otherwise the above would make little sense. |
Yeah. I opened a follow-up for the optimiation of the fetching rule as well |
related: #5923 |
If the runtime API version indicates that asynchronous backing is supported, we should handle more advertisements and second more candidates.
The text was updated successfully, but these errors were encountered: