Skip to content

Conversation

@lupin012
Copy link
Contributor

@lupin012 lupin012 commented Jul 31, 2025

With the current SW (using rpc-test) the gas estimation Erigon and Geth are similar but not equal:
Geth: 5783, 5779, 548e, 54ca, bdac
Erigon: 5640, 56,22 53e8, 5424, bd2a
The Geth binary search makes less simulation to reach the goal (because select a better hi range value)
After the alignment to Geth: We have same result and some number of call simulation

@lupin012 lupin012 marked this pull request as ready for review August 1, 2025 07:51
lupin012 and others added 8 commits August 1, 2025 10:56
- seems `stream.IntercectKV` was exactly same as `UnionKV`. (while
`stream.Intersect` is correct). Removed it.
- added more docs to `HistoryRange` method 
- don't rename methods much now - to not disturb cherry-picks between
`3.1` and `main`. will do after `3.1.1` release - in both places.
These test cases for modexp are taken from the perfnet.
Geth has more field on receipt blockTimestamp add to erigon only on
eth_getBlockReceipt.
Later we can decide to add the same field to other api changing last
parameter of MarshalReceipt()

---------

Co-authored-by: Michelangelo Riccobene <[email protected]>
An “error” level log causes end-to-end tests to fail. 

As discussed on Discord, this log should be set to Warn and not Error.
@lupin012 lupin012 force-pushed the estimateGas_align_to_geth branch from 8e69b98 to 3e95af8 Compare August 1, 2025 10:57
@lupin012 lupin012 marked this pull request as draft August 1, 2025 11:35
@lupin012 lupin012 marked this pull request as ready for review August 1, 2025 11:58
@AskAlexSharov AskAlexSharov merged commit cee3f4a into main Aug 5, 2025
15 checks passed
@AskAlexSharov AskAlexSharov deleted the estimateGas_align_to_geth branch August 5, 2025 05:34
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.

6 participants