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

Gas&fee updates #2091

Merged
merged 18 commits into from
Nov 11, 2023
Merged

Gas&fee updates #2091

merged 18 commits into from
Nov 11, 2023

Conversation

grarco
Copy link
Contributor

@grarco grarco commented Nov 4, 2023

Describe your changes

Addresses #1924.
Closes #1923.
Closes #2054.
Closes #2056.

This PR addressed the following:

  • Updates the benchmarks
  • Updates the gas costs and multipliers
  • Charges gas for wrapper tx validation
  • Tracks gas for ibc native vp expensive sections
  • Adds a local configuration parameter for validators to customize their gas-fee tokens preferences

Indicate on which release or other PRs this topic is based on

v0.25.0

Checklist before merging to draft

  • I have added a changelog
  • Git history is in acceptable state

@grarco grarco force-pushed the grarco/gas-fee-updates branch 5 times, most recently from be607d4 to e1386b4 Compare November 5, 2023 22:03
@grarco grarco marked this pull request as ready for review November 5, 2023 22:16
Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

Only some minor comments.

let _validator_local_config: ValidatorLocalConfig =
toml::from_slice(&updated_config).unwrap();

// Update validator configuration file with the new accepted
Copy link
Contributor

Choose a reason for hiding this comment

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

presumably other updates would also be applied, if present in the file read?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes I probably made it more generic than needed, at the moment the only local configuration parameter that we need is the gas&fee related one, but maybe we could add more in the future? This file though doesn't bind with the other configurations that we have (for example, we don't merge the toml files) so if we want it to be meaningful we need to also update the code to make use of these local parameters, otherwise we just read the file and do nothing (in a sense, it should be "safe" by default).

Copy link
Contributor

Choose a reason for hiding this comment

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

this is fine, but we should make sure the comments and cli usage info match what the code actually does

@@ -111,6 +111,10 @@ pub const TX_WITHDRAW_WASM: &str = "tx_withdraw.wasm";
pub const TX_INIT_ACCOUNT_WASM: &str = "tx_init_account.wasm";
pub const TX_INIT_VALIDATOR_WASM: &str = "tx_init_validator.wasm";

pub const TX_RESIGN_STEWARD: &str = "tx_resign_steward.wasm";
Copy link
Contributor

Choose a reason for hiding this comment

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

how do these changes relate to this PR

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, we were just missing the benchmark for this specific transaction, so I added it in this PR, nothing more than this

grarco added a commit that referenced this pull request Nov 7, 2023
grarco added a commit that referenced this pull request Nov 7, 2023
grarco added a commit that referenced this pull request Nov 7, 2023
@grarco grarco force-pushed the grarco/gas-fee-updates branch 2 times, most recently from 3b7df73 to bfd8963 Compare November 7, 2023 15:12
grarco added a commit that referenced this pull request Nov 7, 2023
grarco added a commit that referenced this pull request Nov 7, 2023
@grarco grarco mentioned this pull request Nov 7, 2023
@grarco grarco merged commit bb5b62a into main Nov 11, 2023
11 of 14 checks passed
@grarco grarco deleted the grarco/gas-fee-updates branch November 11, 2023 20:05
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.

Miscellaneous gas&fee updates Validator minimum gas fee parameter IBC transaction gas costs
3 participants