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

Optimize balance_verification_circuit_data_generation, change maximum… #260

Conversation

PetarKirov
Copy link
Collaborator

… level to 37, add error messages

@PetarKirov PetarKirov requested review from Dimo99, Owliie, Xearty and NikolayKostadinov21 and removed request for Dimo99 November 3, 2023 14:19
@monyarm monyarm force-pushed the feat/balance_verification_circuit_data_generation_improvements branch from 112e89a to 1527745 Compare November 6, 2023 11:54
@PetarKirov PetarKirov force-pushed the feat/balance_verification_circuit_data_generation_improvements branch from 1527745 to fdb2647 Compare November 20, 2023 14:38
@@ -73,10 +77,9 @@ pub async fn async_main() -> Result<()> {
}

let mut prev_circuit_data = first_level_data;

for i in 1..38 {
let max_level = if level == None {37} else {clamp(level.unwrap(),1,37)};
Copy link
Contributor

Choose a reason for hiding this comment

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

No need for clamp. Just use unwrap_or(37)

Copy link
Contributor

Choose a reason for hiding this comment

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

The clamp is in case a value greater than 37 is supplied

Copy link
Contributor

Choose a reason for hiding this comment

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

If the value is greater than 37, the program returns a few lines above, so the clamp is obsolete

@Xearty Xearty closed this Jun 6, 2024
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.

4 participants