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 for NoSuchElementException for missing invalid reason when rejecting a local sent transaction #4569

Merged
merged 3 commits into from
Oct 29, 2022

Conversation

fab-10
Copy link
Contributor

@fab-10 fab-10 commented Oct 27, 2022

Signed-off-by: Fabio Di Fabio [email protected]

PR description

Recently added entries to the TransactionAddedStatus enum are missing the invalid reason, and this could cause NoSuchElementException when trying to add a local transaction is rejected with one of these enum values.
Adding the missing invalid reason and for the future log and return an INTERNAL_ERROR in case invalid reason is missing, instead of throwing the exception.

Fixed Issue(s)

Documentation

  • I thought about documentation and added the doc-change-required label to this PR if
    updates are required.

Changelog

@fab-10 fab-10 added the mainnet label Oct 27, 2022
@fab-10 fab-10 changed the title Fix for NoSuchElementException for missing invalid reason when adding… Fix for NoSuchElementException for missing invalid reason when rejecting a local sent transaction Oct 27, 2022
@fab-10 fab-10 marked this pull request as ready for review October 27, 2022 15:03
@fab-10 fab-10 mentioned this pull request Oct 28, 2022
2 tasks
@fab-10 fab-10 merged commit 5137e89 into hyperledger:main Oct 29, 2022
@fab-10 fab-10 deleted the txpool-add-invalid-reason branch October 29, 2022 10:45
macfarla pushed a commit to macfarla/besu that referenced this pull request Jan 10, 2023
eum602 pushed a commit to lacchain/besu that referenced this pull request Nov 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants