Skip to content
Snippets Groups Projects
Unverified Commit 1bd7b75f authored by Javier Viola's avatar Javier Viola Committed by GitHub
Browse files

Register paras after verify the nodes are running, remove sleep (#128)

Register the parachains (that aren't included in the genesis) after we
run the verifier and remove the need for using sleep.
Thx!
parent cc66f5cd
No related merge requests found
......@@ -339,10 +339,12 @@ where
}
}
// TODO: we should wait until node is ready!
if !para_to_register_with_extrinsic.is_empty() {
tokio::time::sleep(Duration::from_secs(10)).await;
}
// TODO:
// - add-ons (introspector/tracing/etc)
// verify nodes
network_helper::verifier::verify_nodes(&network.nodes()).await?;
// Now we need to register the paras with extrinsic from the Vec collected before;
for para in para_to_register_with_extrinsic {
let register_para_options: RegisterParachainOptions = RegisterParachainOptions {
......@@ -371,13 +373,6 @@ where
Parachain::register(register_para_options, &scoped_fs).await?;
}
// TODO (future):
// - add-ons (introspector/tracing/etc)
// verify nodes
network_helper::verifier::verify_nodes(&network.nodes()).await?;
// - write zombie.json state file (we should defined in a way we can load later)
Ok(network)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment