pub fn new(node_url: &str, node_api_secret: Option<String>) -> Result<HTTPNodeClient, Error> {
		let client = Client::new(false, None)
			.map_err(|e| Error::GenericError(format!("Unable to create a client, {}", e)))?;

		Ok(HTTPNodeClient {
			node_url: node_url.to_owned(),
			node_api_secret: node_api_secret,
			node_version_info: None,
			client,
			chain_tip: 	 CachedValue::new(),
			header_info: CachedValue::new(),
			block_info:  CachedValue::new(),
		})
	}
/// Create a new client that will communicate with the given grin node
Create a new client that will communicate with the given grin node
Create a new client that will communicate with the given grin node
pub fn new(node_url: &str, node_api_secret: Option<String>) -> Result<HTTPNodeClient, Error> {
		let client = Client::new(false, None)
			.map_err(|e| Error::GenericError(format!("Unable to create a client, {}", e)))?;
		Ok(HTTPNodeClient {
			node_url: node_url.to_owned(),
			node_api_secret: node_api_secret,
			node_version_info: None,
			client,
			chain_tip: 	 CachedValue::new(),
			header_info: CachedValue::new(),
			block_info:  CachedValue::new(),
		})
	}
pub fn new ( node_url : & str , node_api_secret : Option < String > ) -> Result < HTTPNodeClient , Error > { let client = Client :: new ( false , None ) . map_err ( | e | Error :: GenericError ( format ! ( " " e ) ) ) ? ; Ok ( HTTPNodeClient { node_url : node_url . to_owned ( ) , node_api_secret : node_api_secret , node_version_info : None , client , chain_tip : CachedValue :: new ( ) , header_info : CachedValue :: new ( ) , block_info : CachedValue :: new ( ) , } ) }
Create a new client that will communicate with the given grin node
Create a new client that will communicate with the given grin node
node_url
&str
node_api_secret
Option<String>
node_url
&str
node_api_secret
Option<String>