[#1619] ir: Fix RPC endpoint iteration

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2022-07-22 11:54:21 +03:00 committed by Pavel Karpy
parent 1691364653
commit fb1fac02e9

View file

@ -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
}