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

Pov recovery for parachains #445

Merged
merged 19 commits into from
May 26, 2021
Merged

Pov recovery for parachains #445

merged 19 commits into from
May 26, 2021

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented May 19, 2021

This implements pov recovery for parachain collators.

The idea is that when a collator observes an unknown candidate, for that it doesn't yet has imported a block, we will start a timer. If the timer is ready and we don't have imported the block, we will start to recover the PoV from the relay chain.

In the current model with 12 seconds slot time, this should be working relative smoothly. In the future we probably need to fine tune this.

Missing:

  • Some docs for the crate
  • Fetch the relay-chain slot duration from the relay chain client

Fixes: #388

Co-authored-by: Bernhard Schuster <bernhard@ahoi.io>
@bkchr bkchr mentioned this pull request May 21, 2021
@bkchr bkchr merged commit 7ffb205 into master May 26, 2021
@bkchr bkchr deleted the bkchr-pov-recovery branch May 26, 2021 13:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Recovery of PoVs
2 participants