Skip to content

Commit

Permalink
fix: fix end index in validator ranges file (#509)
Browse files Browse the repository at this point in the history
The ranges.yaml currently looks like this:
```
0-250: cl-1-lighthouse-geth
250-500: cl-2-prysm-reth
500-750: cl-3-lodestar-besu
```

but the end index should be inclusive:
```
0-249: cl-1-lighthouse-geth
250-499: cl-2-prysm-reth
500-749: cl-3-lodestar-besu
```
  • Loading branch information
pk910 authored Mar 6, 2024
1 parent 6fa0475 commit da55be8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def generate_validator_ranges(
continue
start_index = running_total_validator_count
running_total_validator_count += participant.validator_count
end_index = start_index + participant.validator_count
end_index = start_index + participant.validator_count - 1
service_name = client.beacon_service_name
data.append(
{
Expand Down

0 comments on commit da55be8

Please sign in to comment.