pub fn start(&self) -> Result<ChildProcess, Error> {
        let mut child = Command::new(&self.command_path)
            .args(&[
                "--home",
                &self.home_path,
                "start",
                "--pruning",
                "nothing",
                "--grpc.address",
                &self.grpc_listen_address(),
                "--rpc.laddr",
                &self.rpc_listen_address(),
            ])
            .stdin(Stdio::null())
            .stdout(Stdio::piped())
            .stderr(Stdio::piped())
            .spawn()?;

        let stdout = child
            .stdout
            .take()
            .ok_or_else(|| eyre!("expected stdout to be present in child process"))?;

        let stderr = child
            .stderr
            .take()
            .ok_or_else(|| eyre!("expected stderr to be present in child process"))?;

        pipe_to_file(stdout, &format!("{}/stdout.log", self.home_path))?;
        pipe_to_file(stderr, &format!("{}/stderr.log", self.home_path))?;

        Ok(ChildProcess::new(child))
    }
/**
       Start a full node by running in the background `gaiad start`.

       Returns a [`ChildProcess`] that stops the full node process when the
       value is dropped.
    */
Start a full node by running in the background `gaiad start`.
Returns a [`ChildProcess`] that stops the full node process when the
value is dropped.
Start a full node by running in the background ` gaiad start ` . Returns a [ ` ChildProcess ` ] that stops the full node process when the value is dropped .
pub fn start(&self) -> Result<ChildProcess, Error> {
        let mut child = Command::new(&self.command_path)
            .args(&[
                "--home",
                &self.home_path,
                "start",
                "--pruning",
                "nothing",
                "--grpc.address",
                &self.grpc_listen_address(),
                "--rpc.laddr",
                &self.rpc_listen_address(),
            ])
            .stdin(Stdio::null())
            .stdout(Stdio::piped())
            .stderr(Stdio::piped())
            .spawn()?;
        let stdout = child
            .stdout
            .take()
            .ok_or_else(|| eyre!("expected stdout to be present in child process"))?;
        let stderr = child
            .stderr
            .take()
            .ok_or_else(|| eyre!("expected stderr to be present in child process"))?;
        pipe_to_file(stdout, &format!("{}/stdout.log", self.home_path))?;
        pipe_to_file(stderr, &format!("{}/stderr.log", self.home_path))?;
        Ok(ChildProcess::new(child))
    }
pub fn start ( & self ) -> Result < ChildProcess , Error > { let mut child = Command :: new ( & self . command_path ) . args ( & [ " " , & self . home_path , " " , " " , " " , " " , & self . grpc_listen_address ( ) , " " , & self . rpc_listen_address ( ) , ] ) . stdin ( Stdio :: null ( ) ) . stdout ( Stdio :: piped ( ) ) . stderr ( Stdio :: piped ( ) ) . spawn ( ) ? ; let stdout = child . stdout . take ( ) . ok_or_else ( | | eyre ! ( " " ) ) ? ; let stderr = child . stderr . take ( ) . ok_or_else ( | | eyre ! ( " " ) ) ? ; pipe_to_file ( stdout , & format ! ( " " self home_path ) ) ? ; pipe_to_file ( stderr , & format ! ( " " self home_path ) ) ? ; Ok ( ChildProcess :: new ( child ) ) }
Start a full node by running in the background `gaiad start`.
Start a full node by running in the background ` gaiad start ` .
&self
&self