Skip to content

Commit

Permalink
GUI now starts verif server in background
Browse files Browse the repository at this point in the history
This is done by user clicking a dot which changes color.
The server's slow startup is monitored with a new RPC
call 'echo'.
The app is now basically fully functional, but rough edges
need cleaning off, in particular the syncing of the config
vars that are being set in the window, with those used
to start up the server.
  • Loading branch information
Adam Gibson authored and Adam Gibson committed Sep 30, 2024
1 parent e0e9d73 commit 7ed8e0e
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 76 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ version = "0.0.1"
edition = "2021"

[dependencies]
futures = {version = "0.3.3", features = ["executor"]}
rand = { version = "0.8", default-features = false }
bulletproofs = { git = "https://github.com/AdamISZ/curve-trees", rev = "7268c22944595e2cfe52de623d33ece6f4882e5f" }
relations = { git = "https://github.com/AdamISZ/curve-trees", rev = "7268c22944595e2cfe52de623d33ece6f4882e5f" }
Expand Down
8 changes: 8 additions & 0 deletions src/autctactions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,14 @@ fn print_and_return(s: &str) -> Result<String, Box<dyn Error>>{
Ok(s.to_string())
}

pub async fn request_echo(autctcfg: &AutctConfig) -> Result<String, Box<dyn Error>> {
let res = rpcclient::echo(autctcfg).await;
match res {
Ok(x) => Ok(x.response_msg),
Err(_) => Err("Failed echo call".into())
}
}

pub async fn request_audit_verify(autctcfg: AutctConfig) -> Result<String, Box<dyn Error>>{
let res = rpcclient::auditverify(autctcfg.clone()).await;
match res {
Expand Down
Loading

0 comments on commit 7ed8e0e

Please sign in to comment.