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(sumeragi): early exit from handle_block_sync #4744

Merged
merged 1 commit into from
Jun 19, 2024

Conversation

Erigara
Copy link
Contributor

@Erigara Erigara commented Jun 19, 2024

Description

Exit early from handle_block_sync if received block is the same or has smaller or equal view change index.

Benefits

Improve performance of block sync by avoid doing work where not necessary.

Copy link
Contributor

@mversic mversic left a comment

Choose a reason for hiding this comment

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

should it be ported to main branch also?

@Erigara
Copy link
Contributor Author

Erigara commented Jun 19, 2024

should it be ported to main branch also?

yes, i will create port into the main branch as well

@Erigara Erigara merged commit 7763a73 into hyperledger-iroha:stable Jun 19, 2024
2 of 6 checks passed
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.

3 participants