Commit da55be84 authored by pk910's avatar pk910 Committed by GitHub

fix: fix end index in validator ranges file (#509)

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
```
parent 6fa04751
...@@ -16,7 +16,7 @@ def generate_validator_ranges( ...@@ -16,7 +16,7 @@ def generate_validator_ranges(
continue continue
start_index = running_total_validator_count start_index = running_total_validator_count
running_total_validator_count += participant.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 service_name = client.beacon_service_name
data.append( data.append(
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment