-
Notifications
You must be signed in to change notification settings - Fork 960
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
Improve gas interface #3428
Improve gas interface #3428
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3428 +/- ##
==========================================
- Coverage 53.48% 53.46% -0.02%
==========================================
Files 320 320
Lines 110000 109974 -26
==========================================
- Hits 58832 58803 -29
- Misses 51168 51171 +3 ☔ View full report in Codecov by Sentry. |
8f4678c
to
2e55958
Compare
2e55958
to
3d0b9cb
Compare
@yito88 Hermes tests failing again (sorry about that) |
yeah, it seems that the parameter structure change in #3391 causes the failure. |
3d0b9cb
to
be85e27
Compare
Maybe not, I've just pushed a fix to that branch that was supposed to fix a failing ibc test (non-hermes) but it seems to have fixed all the e2e tests. So the issue might indeed come from this branch |
7ea3a8b
to
46dd71e
Compare
46dd71e
to
1dd9399
Compare
do we still want this PR? |
I think it would be nice if we could add it to the next release |
@grarco Looks good. |
write!(f, "Transaction is valid. Gas used: {}", self.gas_used) | ||
write!(f, "Transaction is valid.") |
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.
My opinion is that keeping this log is important if we are able to still.
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.
I've had a chat with @Fraccaman on this. The gas is already emitted as an event, so this field in the TxResult
was essentially duplicated. I'll try to update the logs in the client to retrieve this piece of information from the events
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.
Brought back the logging of the gas used in 209da0c but directly in the SDK when fetching the tx events. It is no longer possible to log it directly in here since the gas isn't present here anymore
* grarco/better-gas-interface: Logs tx used gas Increases masp gas limit in genesis files and removes custom setup in integration tests update Hermes Returns `WholeGas` from `dry_run_tx` Adds conversion from `WholeGas` to `GasLimit` Updates gas in ibc e2e test Fixes gas payment in masp integration tests Updates gas limit in unit tests Changelog #3428 Changelog #3428 Removes misleading gas message Fixes ibc e2e test Fixes unit tests Clippy + fmt Compacts `BatchResults` into `TxResult` Remove gas from `TxResult`. Adjusts dry run result Reduces gas scale param in genesis Introduces `WholeGas` type
Describe your changes
Closes #3427.
Closes #3395.
Introduces a new
WholeGas
type to better distinguish between gas in subunits (for tracking) and gas in whole units (for events and fees).Reduces the gas scale in the localnet genesis file and in tests by an order of magnitude to increase the gas cost of transactions which was too low.
Removes the redundant
gas_used
field ofTxResult
(since we already emit an attributeGasUsed
) and collapse the previousBatchResults
directly intoTxResult
.Indicate on which release or other PRs this topic is based on
v0.40.0
Checklist before merging to
draft