Merge branch 'nexus-xyz:main' into main

This commit is contained in:
Toan Pham 2024-10-21 17:18:53 +07:00 committed by GitHub
commit 0e2abc2742
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 6 deletions

View File

@ -5,7 +5,7 @@ Command line interface (CLI) for accessing the Nexus Network. Highest-performanc
## Quick start ## Quick start
``` ```
curl https://cli.nexus.xyz/install.sh | sh curl https://cli.nexus.xyz/ | sh
``` ```
If you do not already have Rust, you will be prompted to install it. If you do not already have Rust, you will be prompted to install it.
@ -20,4 +20,4 @@ add `NONINTERACTIVE=1` before `sh`.
## Known issues ## Known issues
Currently only proving is supported. Submitting programs to the network is in private beta. Currently only proving is supported. Submitting programs to the network is in private beta.
To request an API key, [contact us](https://forms.gle/183D9bcDHUdbxCV5A). To request an API key, contact us at growth@nexus.xyz.

View File

@ -309,13 +309,13 @@ async fn main() {
proof: Some(proof::Proof::NovaBytes(buf)), proof: Some(proof::Proof::NovaBytes(buf)),
})), })),
}; };
client
.send(Message::Binary(response.encode_to_vec()))
.await
.unwrap();
let duration = SystemTime::now().duration_since(start_time).unwrap(); let duration = SystemTime::now().duration_since(start_time).unwrap();
let proof_cycles_hertz = cycles_proven * 1000 / duration.as_millis(); let proof_cycles_hertz = cycles_proven * 1000 / duration.as_millis();
let proof_cycles_per_minute = cycles_proven * 60 * 1000 / duration.as_millis(); let proof_cycles_per_minute = cycles_proven * 60 * 1000 / duration.as_millis();
client
.send(Message::Binary(response.encode_to_vec()))
.await
.unwrap();
track( track(
"proof".into(), "proof".into(),
format!("Proof sent! You proved at {} Hz.", proof_cycles_hertz), format!("Proof sent! You proved at {} Hz.", proof_cycles_hertz),