Skip to content

Conversation

@macfarla
Copy link
Contributor

@macfarla macfarla commented Oct 27, 2025

Signed-off-by: Sally MacFarlane [email protected]

PR description

error code 3 for reverts
Refer this commit to execution api repo ethereum/execution-apis@c138ce0

Fixed Issue(s)

Fixes these hive tests
eth_call/call-revert-abi-error
eth_call/call-revert-abi-panic

Note the eth_simulate tests with reverts are yet to be updated for the revert error code change.

eth_simulateV1/ethSimulate-eth-send-should-not-produce-logs-on-revert
eth_simulateV1/ethSimulate-eth-send-should-produce-no-logs-on-forward-revert

Thanks for sending a pull request! Have you done the following?

  • Checked out our contribution guidelines?
  • Considered documentation and added the doc-change-required label to this PR if updates are required.
  • Considered the changelog and included an update if required.
  • For database changes (e.g. KeyValueSegmentIdentifier) considered compatibility and performed forwards and backwards compatibility tests

Locally, you can run these tests to catch failures early:

  • spotless: ./gradlew spotlessApply
  • unit tests: ./gradlew build
  • acceptance tests: ./gradlew acceptanceTest
  • integration tests: ./gradlew integrationTest
  • reference tests: ./gradlew ethereum:referenceTests:referenceTests
  • hive tests: Engine or other RPCs modified?

@macfarla macfarla added RPC hive relating to hive tests labels Oct 27, 2025
jframe
jframe previously approved these changes Oct 27, 2025
## Unreleased

### Breaking Changes
- Use error code 3 for execution reverted [#9365](https://github.com/hyperledger/besu/pull/9365)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like quite a big breaking change to just release without warning, especially since it'll end up in the fusaka release. Does this warrant 3 months notice?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ambivalent here. If geth and erigon, both of which are used for block explorers and rpc instances, have used this since 2022... how much would it really break?

Maybe private chains or alt-L1s?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If geth and erigon, both of which are used for block explorers and rpc instances, have used this since 2022

That lessens the concern somewhat.

how much would it really break?

Are you suggesting that noone is using eth_call/eth_estimateGas with besu on mainnet? I don't know the answer to that, I just thought it likely someone is.

Maybe private chains

For sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah this was kind of my thinking. leaving it until after the fusaka release is nbd. but yeah this is bringing besu in line with other ELs so it's probably only really a breaking change if you're only using besu - so private chains.

maybe there is a bigger discussion to have around how we communicate changes to our RPCs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe historically the default for breaking RPC is 3 months notice. Previously think it was tied to quarterly releases, now think we agreed "upcoming breaking changes" is sufficient.
I'm not sure whether breaking RPCs for private networks should be treated differently to public networks.

I don't feel too strongly if you are convinced the impact is low, just wanted to flag it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since this change brings besu in line with other ELs, think it's ok to flag in the changelog in the same release. No advance warning needed.

@macfarla macfarla marked this pull request as draft October 27, 2025 04:58
@macfarla macfarla added the breaking This can only be addressed/merged for a release that allows user-facing changes to be breaking. label Oct 27, 2025
jflo
jflo previously approved these changes Oct 29, 2025
Signed-off-by: Sally MacFarlane <[email protected]>
@macfarla macfarla dismissed stale reviews from jflo and jframe via 31c3878 November 4, 2025 04:53
@macfarla macfarla marked this pull request as ready for review November 4, 2025 04:55
Copilot AI review requested due to automatic review settings November 4, 2025 04:55
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@macfarla macfarla enabled auto-merge (squash) November 11, 2025 20:42
@macfarla macfarla merged commit ebfee2d into hyperledger:main Nov 11, 2025
46 checks passed
@macfarla macfarla deleted the revert-error-code branch November 17, 2025 00:06
jflo pushed a commit to jflo/besu that referenced this pull request Nov 17, 2025
* use error code 3 for reverts

Signed-off-by: Sally MacFarlane <[email protected]>

---------

Signed-off-by: Sally MacFarlane <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking This can only be addressed/merged for a release that allows user-facing changes to be breaking. hive relating to hive tests RPC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants