From fb1fac02e9a8f5f7a39c7cdfd27825e16195b685 Mon Sep 17 00:00:00 2001 From: Pavel Karpy Date: Fri, 22 Jul 2022 11:54:21 +0300 Subject: [PATCH] [#1619] ir: Fix RPC endpoint iteration Signed-off-by: Pavel Karpy --- pkg/innerring/innerring.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/innerring/innerring.go b/pkg/innerring/innerring.go index 5e4f20567..74b6aa245 100644 --- a/pkg/innerring/innerring.go +++ b/pkg/innerring/innerring.go @@ -960,7 +960,7 @@ func createClient(ctx context.Context, p *chainParams, errChan chan<- error) (*c section := p.name + ".endpoint.client" for i := 0; ; i++ { - addr := p.cfg.GetString(section + ".address") + addr := p.cfg.GetString(fmt.Sprintf("%s.%d.%s", section, i, "address")) if addr == "" { break }