-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optimize balance_verification_circuit_data_generation, change maximum… #260
Conversation
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Show resolved
Hide resolved
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Outdated
Show resolved
Hide resolved
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Outdated
Show resolved
Hide resolved
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Outdated
Show resolved
Hide resolved
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Outdated
Show resolved
Hide resolved
...ight-client/plonky2/circuits_executables/bin/balance_verification_circuit_data_generation.rs
Show resolved
Hide resolved
112e89a
to
1527745
Compare
… level to 37, add error messages
1527745
to
fdb2647
Compare
@@ -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)}; |
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
… level to 37, add error messages