Skip to content

Commit

Permalink
fix: ensure that all RPC endpoints are working
Browse files Browse the repository at this point in the history
  • Loading branch information
jlehtimaki committed Oct 30, 2023
1 parent 8229fed commit 8ce481c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/ibc/ibc.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,13 @@ func GetChannelsInfo(ibc *relayer.IBCdata, rpcs *map[string]config.RPC) (Channel
return ChannelsInfo{}, fmt.Errorf("Error: %w for %v", err, cdB)
}

// test that RPC endpoints are working
if _, _, err := relayer.QueryLatestHeights(
ctx, chainA, chainB,
); err != nil {
return ChannelsInfo{}, fmt.Errorf("Error: %w for %v", err, cdA)
}

for _, c := range ibc.Channels {
var order chantypes.Order

Expand Down

0 comments on commit 8ce481c

Please sign in to comment.