Test multiple batches, re-attempts, randomized selected signers

This commit is contained in:
Luke Parker
2023-07-26 05:55:47 -04:00
parent b205391b28
commit 7823ece4fe
3 changed files with 181 additions and 108 deletions

View File

@@ -252,10 +252,14 @@ impl Coordinator {
use monero_serai::rpc::HttpRpc;
let rpc = HttpRpc::new(rpc_url).expect("couldn't connect to the coordinator's Monero RPC");
let _: EmptyResponse = rpc
let res: serde_json::Value = rpc
.json_rpc_call("submit_block", Some(serde_json::json!([hex::encode(block)])))
.await
.unwrap();
let err = res.get("error");
if err.is_some() && (err.unwrap() != &serde_json::Value::Null) {
panic!("failed to submit Monero block: {res}");
}
}
NetworkId::Serai => panic!("processor tests broadcasting block to Serai"),
}