-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add dynamic gas config to cosmos legacy bootstrap #477
base: main
Are you sure you want to change the base?
Add dynamic gas config to cosmos legacy bootstrap #477
Conversation
@@ -31,7 +36,7 @@ fn test_celestia_bootstrap() -> Result<(), Error> { | |||
cosmos_builder: builder.clone(), | |||
chain_store_dir: store_dir.join("chains"), | |||
bridge_store_dir: store_dir.join("bridges"), | |||
dynamic_gas: Some(DynamicGasConfig::default()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For CelestiaBootstrap, since this is chain-specific, we can probably make it either always have dynamic gas or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't there be an issue with the CanUseLegacyCosmosSdkChainBootstrapper
https://github.com/informalsystems/hermes-sdk/blob/main/crates/celestia/celestia-integration-tests/src/contexts/bootstrap.rs#L72?
|
||
// TODO: Eventually use Config to define dynamic gas config | ||
tx_config.gas_config.dynamic_gas_config = self.dynamic_gas.clone(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, we can modify build_chain_with_config
to accept an additional parameter dynamic_gas_config
.
The chain is being built here, and you can use Bootstrap: HasDynamicGasConfig
to get the config.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in d534f61
Closes: #XXX
Description
Status
Waiting on informalsystems/cosmos.nix#280 and #476
PR author checklist:
unclog
.docs/
).Reviewer checklist:
Files changed
in the GitHub PR explorer.