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

Avoid trying to remove empty lists of transactions #305

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

jasagredo
Copy link
Contributor

@jasagredo jasagredo commented Aug 21, 2023

Description

By increasing the opcert twice on a testing cluster, we found out that this code path could be executed with an empty list of transactions leading to an exception. This change make sure we only try to remove transactions if there are any in the block, and in fact, only of the error of the block was due to the body.

@jasagredo jasagredo requested a review from a team as a code owner August 21, 2023 13:59
@jasagredo jasagredo force-pushed the jasagredo/invalid-block-forging branch from 0e77572 to dfe85f8 Compare August 21, 2023 14:56
@jasagredo jasagredo requested a review from nfrisby August 21, 2023 14:57
Copy link
Contributor

@nfrisby nfrisby left a comment

Choose a reason for hiding this comment

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

I Approved, but I also made a suggestion that I feel somewhat strongly about.

@jasagredo jasagredo force-pushed the jasagredo/invalid-block-forging branch from dfe85f8 to 0f71c69 Compare August 22, 2023 08:15
@jasagredo jasagredo merged commit 5515aa5 into feature/utxo-hd Aug 22, 2023
4 of 9 checks passed
@jasagredo jasagredo deleted the jasagredo/invalid-block-forging branch August 22, 2023 08:17
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