AleoNet / snarkOS

A Decentralized Operating System for ZK Applications
http://snarkos.org
Apache License 2.0
4.1k stars 2.57k forks source link

Avoid unnecessary calculations in propose_batch #3275

Closed elderhammer closed 1 month ago

elderhammer commented 1 month ago

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 (https://github.com/AleoNet/snarkOS/pull/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.