Closed jtieri closed 2 years ago
Proposal: We ditch the library used for calculating the permutations in favor of a nested for loop
Ex:
for _, chainA := range chains {
for _, chainB := range chains {
if chainA == chainB {
continue
}
pair := chainA + "-" + chainB
if chainB < chainA {
pair = chainB + "-" + chainA
}
chainCombinations[pair] = true
}
}
cc @boojamya
Yea, I guess those permutations get a bit much with a config that big.
I think that is a good solution @jtieri, pretty sure that is how you originally had it implemented too.
While preparing to update the IBC light clients on Juno I noticed that
rly paths fetch
gets stuck in an infinite loop when you have many chains in your config.Here is the config: