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 unnecessary calculations in propose_batch #3275

Conversation

elderhammer
Copy link
Contributor

@elderhammer elderhammer commented May 24, 2024

Determiner in advance whether the current round is 0 or the current round has been proposed.
If so, skip the subsequent process and return directly.

Note: There was a PR (#3265) with the same changes, but it was reverted because it could not be directly merged into mainnet. This PR is to resubmit the changes and prepare to be merged into mainnet-staging.

Copy link
Contributor

@zosorock zosorock left a comment

Choose a reason for hiding this comment

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

This was already approved by core devs. Thank you for your contribution!

@zosorock zosorock added the performance Issues related to the node's performance label May 25, 2024
@zosorock zosorock merged commit 66a3425 into AleoNet:mainnet-staging May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Issues related to the node's performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants