Skip to content

Commit 7ed8e0e

Browse files
Adam GibsonAdam Gibson
Adam Gibson
authored and
Adam Gibson
committed
GUI now starts verif server in background
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.
1 parent e0e9d73 commit 7ed8e0e

File tree

6 files changed

+232
-76
lines changed

6 files changed

+232
-76
lines changed

Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ version = "0.0.1"
1313
edition = "2021"
1414

1515
[dependencies]
16+
futures = {version = "0.3.3", features = ["executor"]}
1617
rand = { version = "0.8", default-features = false }
1718
bulletproofs = { git = "https://github.com/AdamISZ/curve-trees", rev = "7268c22944595e2cfe52de623d33ece6f4882e5f" }
1819
relations = { git = "https://github.com/AdamISZ/curve-trees", rev = "7268c22944595e2cfe52de623d33ece6f4882e5f" }

src/autctactions.rs

+8
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ fn print_and_return(s: &str) -> Result<String, Box<dyn Error>>{
114114
Ok(s.to_string())
115115
}
116116

117+
pub async fn request_echo(autctcfg: &AutctConfig) -> Result<String, Box<dyn Error>> {
118+
let res = rpcclient::echo(autctcfg).await;
119+
match res {
120+
Ok(x) => Ok(x.response_msg),
121+
Err(_) => Err("Failed echo call".into())
122+
}
123+
}
124+
117125
pub async fn request_audit_verify(autctcfg: AutctConfig) -> Result<String, Box<dyn Error>>{
118126
let res = rpcclient::auditverify(autctcfg.clone()).await;
119127
match res {

0 commit comments

Comments
 (0)