Skip to content

Commit

Permalink
fix validator name ranges parsing (inclusive end)
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed Aug 18, 2023
1 parent ce599e2 commit 04fa321
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/validatornames.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func (vn *ValidatorNames) LoadFromYaml(fileName string) error {
continue
}
}
for idx := minIdx; idx < maxIdx; idx++ {
for idx := minIdx; idx <= maxIdx; idx++ {
vn.names[idx] = name
nameCount++
}
Expand Down Expand Up @@ -122,7 +122,7 @@ func (vn *ValidatorNames) LoadFromRangesApi(apiUrl string) error {
continue
}
}
for idx := minIdx; idx < maxIdx; idx++ {
for idx := minIdx; idx <= maxIdx; idx++ {
vn.names[idx] = name
nameCount++
}
Expand Down

0 comments on commit 04fa321

Please sign in to comment.