MCPcopy Create free account
hub / github.com/consensus-shipyard/ipc / start_node

Method start_node

fendermint/testing/materializer/src/docker/mod.rs:767–781  ·  view source on GitHub ↗
(
        &'s mut self,
        node: &'a DockerNode,
        seed_nodes: &'a [&'a DockerNode],
    )

Source from the content-addressed store, hash-verified

765 }
766
767 async fn start_node<'s, 'a>(
768 &'s mut self,
769 node: &'a DockerNode,
770 seed_nodes: &'a [&'a DockerNode],
771 ) -> anyhow::Result<()>
772 where
773 's: 'a,
774 {
775 // Overwrite the env file which has seed addresses, then start the node (unless it's already running).
776 node.start_all_containers(seed_nodes).await?;
777 node.wait_for_apis_to_start(*STARTUP_TIMEOUT).await?;
778 // Trying to avoid `Tendermint RPC error: server returned malformatted JSON (no 'result' or 'error')` on first subnet creation attempt.
779 tokio::time::sleep(Duration::from_secs(5)).await;
780 Ok(())
781 }
782
783 async fn create_subnet<'s, 'a>(
784 &'s mut self,

Callers

nothing calls this directly

Calls 2

start_all_containersMethod · 0.80

Tested by

no test coverage detected