-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to increase gas limit when creating IBC clients? #1055
Comments
FWIW I tried manually bumping the package chainspec
import (
"github.com/strangelove-ventures/interchaintest/v6"
"github.com/strangelove-ventures/interchaintest/v6/ibc"
)
const (
cosmosDockerRepository = "ghcr.io/strangelove-ventures/heighliner/gaia"
cosmosDockerVersion = "v15.1.0"
)
var Cosmos = &interchaintest.ChainSpec{
Name: "gaia",
ChainConfig: ibc.ChainConfig{
Type: "cosmos",
Name: "gaia",
ChainID: "cosmoshub-4",
Bin: "gaiad",
Bech32Prefix: "cosmos",
Denom: "uatom",
GasPrices: "0.01uatom",
GasAdjustment: 100.0,
TrustingPeriod: "504hours",
NoHostMount: false,
UsingNewGenesisCommand: true,
Images: cosmosDockerImages(),
},
NumValidators: numValidators(),
NumFullNodes: numFullNodes(),
}
func cosmosDockerImages() []ibc.DockerImage {
return []ibc.DockerImage{
{
Repository: cosmosDockerRepository,
Version: cosmosDockerVersion,
UidGid: "1025:1025",
},
}
} |
interesting, i would have expected that to resolve the issue. give me some time to reproduce this issue locally and see if i can't figure something out! |
I was able to circumvent this problem. It turns out the gas adjustment I was providing was nested in the ibc.ChainConfig but in order to have it applied to the var cosmosHub = &interchaintest.ChainSpec{
Name: "gaia",
ChainConfig: ibc.ChainConfig{
Name: "gaia",
Type: "cosmos",
ChainID: "gaia",
Bin: "gaiad",
Bech32Prefix: "cosmos",
Denom: "uatom",
GasPrices: "0.01uatom",
GasAdjustment: *gasAdjustment(),
TrustingPeriod: "504hours",
NoHostMount: false,
Images: cosmosDockerImages(),
UsingNewGenesisCommand: true,
},
NumValidators: numValidators(),
NumFullNodes: numFullNodes(),
GasAdjustment: gasAdjustment(), // the default gas estimation fails to create a client on Cosmos Hub so we need to bump it up.
}
func gasAdjustment() *float64 {
gasAdjustment := 2.0
return &gasAdjustment
}
|
Context
I'm trying to use interchaintest to test ICA on Celestia. I'm connecting Celestia to Cosmos Hub via interchaintest. When I start my interchaintest, I encounter:
Question
How can I manually increase the gas limit used by the ibc-go relayer when creating clients?
The text was updated successfully, but these errors were encountered: