-
Notifications
You must be signed in to change notification settings - Fork 295
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
store used gas as separate entry #3821
Comments
replied to me on discord: |
Hey .@hypnagonia, the RPC |
Although the PR is almost complete, I have thought about the problems with the design here.
Is this design reasonable? My ProposalIn fact there is no need to store usedGas for each Tx, because there is already an interface like |
agree with @AlexiaChen it is better to utilize |
Summary
currently getting usedGas is only possible from tx receipt. which requires an extra query for each tx for explorer and increases load on rpc/slowing the syncing speed down
Current Design
tx receipt is only available only in tx receipt payload
Problems
requires an extra query for each tx for explorer and increases load on RPC
Proposal
modify the explorer node to save that data as a separate entry and serve usedGas in getBlockByNumber (with full tx info flag) response
The text was updated successfully, but these errors were encountered: