Skip to content
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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ljoss17
Copy link
Contributor

@ljoss17 ljoss17 commented Nov 21, 2024

Closes: #XXX

Description

Status

Waiting on informalsystems/cosmos.nix#280 and #476


PR author checklist:

  • Added changelog entry, using unclog.
  • Added tests: integration (for Hermes) or unit/mock tests (for modules).
  • Linked to GitHub issue.
  • Updated code comments and documentation (e.g., docs/).
  • Tagged one reviewer who will be the one responsible for shepherding this PR.

Reviewer checklist:

  • Reviewed Files changed in the GitHub PR explorer.
  • Manually tested (in case integration/unit/mock tests are absent).

@@ -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()),
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


// TODO: Eventually use Config to define dynamic gas config
tx_config.gas_config.dynamic_gas_config = self.dynamic_gas.clone();
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in d534f61

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants