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

Update provisioner for asynchronous backing #5053

Closed
rphmeier opened this issue Mar 7, 2022 · 3 comments
Closed

Update provisioner for asynchronous backing #5053

rphmeier opened this issue Mar 7, 2022 · 3 comments
Assignees
Labels
I8-refactor Code needs refactoring.

Comments

@rphmeier
Copy link
Contributor

rphmeier commented Mar 7, 2022

If the runtime API indicates that it's time to switch to async backing, get a set of backed candidates from prospective-parachains, not backing directly. but get full backing votes from backing.

@rphmeier rphmeier added the I8-refactor Code needs refactoring. label Mar 7, 2022
@rphmeier
Copy link
Contributor Author

With #4913 this will use the bitfields to figure out whether it should include a candidate for a core and what the required_path is:

  • If scheduled, then yes and required_path is empty.
  • If occupied and bitfields make it free, then yes and required_path is vec![occupied_candidate_hash]
  • If occupied and availability times out, then yes and required_path is vec![]
  • If occupied, otherwise, the no
  • If free, then no

Then we'd query ProspectiveParachainsMessage::GetBackableCandidate, and then query the candidate backing subsystem for the full CommittedCandidateReceipt.

@rphmeier
Copy link
Contributor Author

Supersedes #1573

@slumber
Copy link
Contributor

slumber commented Sep 11, 2022

Closed by #5711

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
I8-refactor Code needs refactoring.
Projects
None yet
Development

No branches or pull requests

2 participants