adjustments to gas estimation #8478
Conversation
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
|
this is the test that's failing currently on main, and passes with this PR |
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
|
still WIP. accessList hive tests passing but a regression in estimateGas:
|
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
|
with this PR, down to 23 rpc_compat failures. With this PR, 3 hive tests are fixed: without this PR |
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
|
Great, this also fixes #8527 |
fab-10
left a comment
There was a problem hiding this comment.
LGTM, I just have some questions about a possible cleanup.
Then I prefer that the tolerance ratio is configurable already in this PR, so just in case someone want to keep the previous behavior.
evm/src/main/java/org/hyperledger/besu/evm/tracing/EstimateGasOperationTracer.java
Outdated
Show resolved
Hide resolved
evm/src/main/java/org/hyperledger/besu/evm/tracing/EstimateGasOperationTracer.java
Outdated
Show resolved
Hide resolved
...ain/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/AbstractEstimateGas.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
|
I added a Is there extra testing you want done eg for linea related to this change @fab-10 ? |
fab-10
left a comment
There was a problem hiding this comment.
LGTM: just an optimization
evm/src/main/java/org/hyperledger/besu/evm/tracing/EstimateGasOperationTracer.java
Outdated
Show resolved
Hide resolved
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
Signed-off-by: Sally MacFarlane <macfarla.github@gmail.com>
fab-10
left a comment
There was a problem hiding this comment.
LGTM, if you want code could be simplified further removing the Math::pow call since the exponent is always 1
Signed-off-by: Sally MacFarlane macfarla.github@gmail.com
PR description
this builds on top of the simple change in #8472
adjustments to gas estimate algorithm to match hive test and geth gas estimates
Fixed Issue(s)
fixes #8527, #8459 and #8464
fixes 3 hive tests:
rpc-compat hive test
Thanks for sending a pull request! Have you done the following?
doc-change-requiredlabel to this PR if updates are required.Locally, you can run these tests to catch failures early:
./gradlew spotlessApply./gradlew build./gradlew acceptanceTest./gradlew integrationTest./gradlew ethereum:referenceTests:referenceTests