From cb98694a9e17045879f4418d8cd5fb95c3d5c14a Mon Sep 17 00:00:00 2001 From: danwt <30197399+danwt@users.noreply.github.com> Date: Wed, 24 Apr 2024 12:13:25 +0100 Subject: [PATCH] add todos on the threshold config --- relayer/strategies.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/relayer/strategies.go b/relayer/strategies.go index 61fd2d3a3..04deb23a3 100644 --- a/relayer/strategies.go +++ b/relayer/strategies.go @@ -60,9 +60,9 @@ func StartRelayer( for chainID, chain := range chains { var p processor.ChainProcessor - if chainID == paths[0].Path.Src.ChainID { + if 0 < len(paths) && chainID == paths[0].Path.Src.ChainID { // Rollapp - threshold := 2 // same as default + threshold := 2 // same as default, TODO(danwt): configure if necessary p = chain.chainProcessor(log, metrics, cosmos.WithInSyncNumBlocksThreshold(threshold)) } else { p = chain.chainProcessor(log, metrics)