MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / start_node

Method start_node

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

wait_for_startedMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected