ChainSafe / gossamer

🕸️ Go Implementation of the Polkadot Host
https://chainsafe.github.io/gossamer
GNU Lesser General Public License v3.0
432 stars 116 forks source link

Change type of group id from `ParaID` to `CoreIndex` #4316

Open axaysagathiya opened 2 weeks ago

axaysagathiya commented 2 weeks ago

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.

Also, some fields have been introduced in the perRelayParentState structure of polkadot-sdk. check and add the fields we need.