Proactive checking for empty groups (#7234)
This commit is contained in:
parent
fc752f4bf8
commit
1c0a9eeec4
@ -30,7 +30,7 @@ function mapValidators (startWith: Record<string, [GroupIndex, ValidatorInfo[]]>
|
||||
...all,
|
||||
[id.toString()]: [
|
||||
assignment.groupIdx,
|
||||
groups[assignment.groupIdx.toNumber()]
|
||||
(groups[assignment.groupIdx.toNumber()] || [])
|
||||
.map((index) => [index, indices[index.toNumber()]])
|
||||
.filter(([, a]) => a)
|
||||
.map(([indexActive, indexValidator]) => ({
|
||||
|
||||
Loading…
Reference in New Issue
Block a user