Skip to content
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

Change type of group id from ParaID to CoreIndex #4316

Open
Tracked by #4245
axaysagathiya opened this issue Nov 5, 2024 · 0 comments
Open
Tracked by #4245

Change type of group id from ParaID to CoreIndex #4316

axaysagathiya opened this issue Nov 5, 2024 · 0 comments
Labels
S-subsystems-backing issues related to polkadot host backing subsystem functionality.

Comments

@axaysagathiya
Copy link
Contributor

axaysagathiya commented Nov 5, 2024

Issue summary

Before elastic scaling, only a single group of validators was assigned to a parachain, so we assigned paraID to GroupID.
However, in elastic scaling, multiple groups of validators(core) will be assigned to a parachain. So now we have to change the type of GroupID from paraID to the CoreIndex, which is unique for assigned groups.

  • Change the type of groupID from paraID to CoreIndex and check all the methods to see if any changes are needed.
    • Structs containing groupID: Summary, tableContext, attestedCandidate, candidateData.
  • change assignment *parachaintypes.ParaID field to assignedCore *parachaintypes.CoreIndex in perRelayParentState which represents the core index assigned to the local validator at this relay parent. also figure out if we really need this a pointer type.

Other information and links

@axaysagathiya axaysagathiya added the S-subsystems-backing issues related to polkadot host backing subsystem functionality. label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-subsystems-backing issues related to polkadot host backing subsystem functionality.
Projects
None yet
Development

No branches or pull requests

1 participant