Skip to content

Fix the simulation of txs with future nonce#8215

Merged
fab-10 merged 2 commits intobesu-eth:mainfrom
fab-10:fix-simulating-tx-with-future-nonce
Feb 3, 2025
Merged

Fix the simulation of txs with future nonce#8215
fab-10 merged 2 commits intobesu-eth:mainfrom
fab-10:fix-simulating-tx-with-future-nonce

Conversation

@fab-10
Copy link
Copy Markdown
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
Copy Markdown
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
Signed-off-by: Fabio Di Fabio <fabio.difabio@consensys.net>
@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 besu-eth:main Feb 3, 2025
@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 <fabio.difabio@consensys.net>
Signed-off-by: Bhanu Pulluri <bhanu.pulluri@kaleido.io>
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