-
Notifications
You must be signed in to change notification settings - Fork 75
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
Resolve issues with some fields in eth_getBlock #432
Conversation
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
Codecov Report
@@ Coverage Diff @@
## main #432 +/- ##
==========================================
- Coverage 76.23% 76.12% -0.11%
==========================================
Files 11 11
Lines 913 909 -4
Branches 144 142 -2
==========================================
- Hits 696 692 -4
Misses 165 165
Partials 52 52
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
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
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
83487d3
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
# Conflicts: # packages/relay/src/lib/eth.ts
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Description:
Fix issues with values returned from
getBlocks
:timestamp
andgasLimit
.timestamp
logic to be always the start of the period, returned by the mirror node at/api/v1/blocks/:hashOrNumber
gasLimit
to be hardcoded as 15000000gas_used
field from/api/v1/blocks/:hashOrNumber
asgasUsed
instead of calculating the gas sum of all contract results in the block.Related issue(s):
Fixes an issue, described in a comment in 414#issuecomment-1207980112
Notes for reviewer:
Checklist