@@ -72,8 +72,6 @@ use std::collections::HashMap;
7272use  std:: fmt; 
7373use  std:: num:: TryFromIntError ; 
7474
75- use  bitcoin:: consensus; 
76- 
7775pub  mod  api; 
7876
7977#[ cfg( feature = "async" ) ]  
@@ -102,6 +100,7 @@ pub fn convert_fee_rate(target: usize, estimates: HashMap<u16, f64>) -> Option<f
102100
103101#[ derive( Debug ,  Clone ) ]  
104102pub  struct  Builder  { 
103+     /// The URL of the Esplora server. 
105104pub  base_url :  String , 
106105    /// Optional URL of the proxy to use to make requests to the Esplora server 
107106/// 
@@ -118,7 +117,7 @@ pub struct Builder {
118117pub  proxy :  Option < String > , 
119118    /// Socket timeout. 
120119pub  timeout :  Option < u64 > , 
121-     /// HTTP headers to set on every request made to Esplora server 
120+     /// HTTP headers to set on every request made to Esplora server.  
122121pub  headers :  HashMap < String ,  String > , 
123122} 
124123
@@ -151,20 +150,20 @@ impl Builder {
151150        self 
152151    } 
153152
154-     /// build  a blocking client from builder 
153+     /// Build  a blocking client from builder 
155154#[ cfg( feature = "blocking" ) ]  
156155    pub  fn  build_blocking ( self )  -> BlockingClient  { 
157156        BlockingClient :: from_builder ( self ) 
158157    } 
159158
160-     // build  an asynchronous client from builder 
159+     // Build  an asynchronous client from builder 
161160    #[ cfg( feature = "async" ) ]  
162161    pub  fn  build_async ( self )  -> Result < AsyncClient ,  Error >  { 
163162        AsyncClient :: from_builder ( self ) 
164163    } 
165164} 
166165
167- /// Errors that can happen during a sync with  `Esplora` 
166+ /// Errors that can happen during a request to  `Esplora` servers.  
168167#[ derive( Debug ) ]  
169168pub  enum  Error  { 
170169    /// Error during `minreq` HTTP request 
@@ -187,9 +186,9 @@ pub enum Error {
187186HexToBytes ( bitcoin:: hex:: HexToBytesError ) , 
188187    /// Transaction not found 
189188TransactionNotFound ( Txid ) , 
190-     /// Header height not found 
189+     /// Block  Header height not found 
191190HeaderHeightNotFound ( u32 ) , 
192-     /// Header hash not found 
191+     /// Block  Header hash not found 
193192HeaderHashNotFound ( BlockHash ) , 
194193    /// Invalid HTTP Header name specified 
195194InvalidHttpHeaderName ( String ) , 
@@ -222,7 +221,7 @@ impl_error!(::minreq::Error, Minreq, Error);
222221#[ cfg( feature = "async" ) ]  
223222impl_error ! ( :: reqwest:: Error ,  Reqwest ,  Error ) ; 
224223impl_error ! ( std:: num:: ParseIntError ,  Parsing ,  Error ) ; 
225- impl_error ! ( consensus:: encode:: Error ,  BitcoinEncoding ,  Error ) ; 
224+ impl_error ! ( bitcoin :: consensus:: encode:: Error ,  BitcoinEncoding ,  Error ) ; 
226225impl_error ! ( bitcoin:: hex:: HexToArrayError ,  HexToArray ,  Error ) ; 
227226impl_error ! ( bitcoin:: hex:: HexToBytesError ,  HexToBytes ,  Error ) ; 
228227
0 commit comments