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
fix: Consider input bytes when calculating gas cost #10379
Conversation
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #10379 +/- ##
=============================================
- Coverage 62.97% 62.97% -0.01%
- Complexity 30794 30795 +1
=============================================
Files 3356 3356
Lines 135216 135219 +3
Branches 14076 14076
=============================================
- Hits 85152 85149 -3
- Misses 46728 46733 +5
- Partials 3336 3337 +1 ☔ View full report in Codecov by Sentry. |
Node: E2E Test Results 1 files ± 0 1 suites ±0 22m 35s ⏱️ + 22m 35s Results for commit e056434. ± Comparison against base commit d0e5885. This pull request removes 1 and adds 311 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
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.
LG
One question
.../src/main/java/com/hedera/node/app/service/evm/contracts/execution/HederaEvmTxProcessor.java
Show resolved
Hide resolved
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
…ut-bytes-for-gas-cost Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
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.
LG
Is there a way for us to describe the gas calculation so test readers can understand why the new numbers are correct e.g. 21k + x + y etc
Maybe not in this PR if it's a lot of overhead but something to consider to improve.
Maybe not as part of this PR
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.
LGTM
Should we consider doing the same thing here for modularized smart contract service? Or in a separate pr? |
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.
LGTM, tyvm @stoqnkpL !
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.
LGTM.
...c/main/java/com/hedera/services/bdd/suites/contract/precompile/AssociatePrecompileSuite.java
Show resolved
Hide resolved
...s/src/main/java/com/hedera/services/bdd/suites/contract/precompile/ContractMintHTSSuite.java
Show resolved
Hide resolved
...ts/src/main/java/com/hedera/services/bdd/suites/contract/traceability/TraceabilitySuite.java
Show resolved
Hide resolved
it's already resolved as part of this PR. Or do you think there's more logic that should be updated? |
No I missed that. Thanks for doing this! |
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.
LGTM
Signed-off-by: Stoyan Panayotov <stoyan.panayotov@limechain.tech>
Description:
Take into consideration the input bytes' size from the evm transaction when calculating the intrinsic gas cost.
Related issue(s):
Fixes #9988
Notes for reviewer:
Checklist