You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To find the core index, we need a group index for the validator who provided the statement.
we can get validator groups from runtime. Rather than calling the runtime function multiple times for the same relay parent state, we can call it once and store it in perRelayParentState as a map from the validator index to the group index.
The core index must be smaller than the number of available cores.
in the case of the seconded statement, make sure the candidate parachain is assigned to the core.
to find the core index from the statement we need below data
Map from the validator index to its group index. (introduce field in perRelayParentState, So that we don't need to call the runtime function again and again)
number of availability cores(have in PerRelayParentState)
group rotation info(have in PerRelayParentState)
signed full statement
So, We can have a method of PerRelayParentState with a statement as an argument.
TODO
implement the functionality discribed above
make sure we have code to fill the values in newly introduce field in perRelayParentState.
unit test
Other information and links
The text was updated successfully, but these errors were encountered:
Issue summary
perRelayParentState
as a map from the validator index to the group index.So, We can have a method of
PerRelayParentState
with a statement as an argument.TODO
perRelayParentState
.Other information and links
The text was updated successfully, but these errors were encountered: