From 04fa32108149f3f17e8e874bf198d20c02990d46 Mon Sep 17 00:00:00 2001 From: pk910 Date: Fri, 18 Aug 2023 17:10:02 +0200 Subject: [PATCH] fix validator name ranges parsing (inclusive end) --- services/validatornames.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/validatornames.go b/services/validatornames.go index a9a9c3ed..bdb66a78 100644 --- a/services/validatornames.go +++ b/services/validatornames.go @@ -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++ } @@ -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++ }