/// Launches a `Node` and optionally creates threads for public and private API handlers,
/// depending on the provided `NodeConfig`.
Launches a `Node` and optionally creates threads for public and private API handlers,
depending on the provided `NodeConfig`.
Launches a ` Node ` and optionally creates threads for public and private API handlers depending on the provided ` NodeConfig ` .
pub fn run(self) -> Result<(), failure::Error> {
        trace!("Running node.");
        // Runs NodeHandler.
        let handshake_params = HandshakeParams::new(
            self.state().keys().consensus_pk(),
            self.state().keys().consensus_sk().to_owned(),
            self.state().connect_list().clone(),
            self.state().our_connect_message().clone(),
            self.max_message_len,
        );
        self.run_handler(&handshake_params)?;
        Ok(())
    }
pub fn run ( self ) -> Result < ( ) , failure :: Error > { trace ! ( " " ) ; // Runs NodeHandler. let handshake_params = HandshakeParams :: new ( self . state ( ) . keys ( ) . consensus_pk ( ) , self . state ( ) . keys ( ) . consensus_sk ( ) . to_owned ( ) , self . state ( ) . connect_list ( ) . clone ( ) , self . state ( ) . our_connect_message ( ) . clone ( ) , self . max_message_len , ) ; self . run_handler ( & handshake_params ) ? ; Ok ( ( ) ) }
Launches a `Node` and optionally creates threads for public and private API handlers,
depending on the provided `NodeConfig`.
Launches a ` Node ` and optionally creates threads for public and private API handlers depending on the provided ` NodeConfig ` .
self