Skip to content
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

Fix the simulation of txs with future nonce #8215

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Jan 31, 2025

PR description

With #8139 call parameters support the nonce, but the simulation of a tx with a future nonce fails because we were strictly checking the next nonce for the sender, why we should allow for the simulation of any nonce greater than the current one.

Fixed Issue(s)

related to #8139

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

@fab-10 fab-10 force-pushed the fix-simulating-tx-with-future-nonce branch from 01bf7a8 to 7ae4399 Compare January 31, 2025 15:01
@fab-10 fab-10 marked this pull request as ready for review January 31, 2025 15:02
@fab-10 fab-10 force-pushed the fix-simulating-tx-with-future-nonce branch from 7ae4399 to 73cfa08 Compare January 31, 2025 17:26
@macfarla
Copy link
Contributor

macfarla commented Feb 3, 2025

failing some EthCall unit tests. changing to draft pending unit test fixes

@macfarla macfarla marked this pull request as draft February 3, 2025 01:51
@fab-10 fab-10 force-pushed the fix-simulating-tx-with-future-nonce branch from 73cfa08 to 3154aa2 Compare February 3, 2025 11:19
@fab-10 fab-10 marked this pull request as ready for review February 3, 2025 13:01
@fab-10 fab-10 merged commit 24e2895 into hyperledger:main Feb 3, 2025
43 checks passed
@fab-10 fab-10 deleted the fix-simulating-tx-with-future-nonce branch February 3, 2025 13:01
pullurib pushed a commit to pullurib/besu that referenced this pull request Feb 6, 2025
Signed-off-by: Fabio Di Fabio <[email protected]>
Signed-off-by: Bhanu Pulluri <[email protected]>
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.

3 participants