Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
xenowits committed Nov 3, 2022
1 parent 1e45bd3 commit 847c633
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions testutil/validatormock/synccomm.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,10 @@ func prepareSubcommittees(ctx context.Context, eth2Cl eth2wrap.Client, duties sy
return nil, err
}

subnetCount := spec["SYNC_COMMITTEE_SUBNET_COUNT"].(uint64)
subcomms := make(subCommittees)
var (
subnetCount = spec["SYNC_COMMITTEE_SUBNET_COUNT"].(uint64)
subcomms = make(subCommittees)
)
for _, duty := range duties {
for i := uint64(0); i < subnetCount; i++ {
subcomms[duty.ValidatorIndex] = append(subcomms[duty.ValidatorIndex], eth2p0.CommitteeIndex(i))
Expand Down

0 comments on commit 847c633

Please sign in to comment.