Skip to content

Commit

Permalink
add todos on the threshold config
Browse files Browse the repository at this point in the history
  • Loading branch information
danwt committed Apr 24, 2024
1 parent e97574d commit cb98694
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions relayer/strategies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cb98694

Please sign in to comment.