@@ -70,8 +70,6 @@ use std::collections::HashMap;
7070use  std:: fmt; 
7171use  std:: num:: TryFromIntError ; 
7272
73- use  bitcoin:: consensus; 
74- 
7573pub  mod  api; 
7674
7775#[ cfg( feature = "async" ) ]  
@@ -100,6 +98,7 @@ pub fn convert_fee_rate(target: usize, estimates: HashMap<u16, f64>) -> Option<f
10098
10199#[ derive( Debug ,  Clone ) ]  
102100pub  struct  Builder  { 
101+     /// The URL of the Esplora server. 
103102pub  base_url :  String , 
104103    /// Optional URL of the proxy to use to make requests to the Esplora server 
105104/// 
@@ -116,7 +115,7 @@ pub struct Builder {
116115pub  proxy :  Option < String > , 
117116    /// Socket timeout. 
118117pub  timeout :  Option < u64 > , 
119-     /// HTTP headers to set on every request made to Esplora server 
118+     /// HTTP headers to set on every request made to Esplora server.  
120119pub  headers :  HashMap < String ,  String > , 
121120} 
122121
@@ -149,20 +148,20 @@ impl Builder {
149148        self 
150149    } 
151150
152-     /// build  a blocking client from builder 
151+     /// Build  a blocking client from builder 
153152#[ cfg( feature = "blocking" ) ]  
154153    pub  fn  build_blocking ( self )  -> BlockingClient  { 
155154        BlockingClient :: from_builder ( self ) 
156155    } 
157156
158-     // build  an asynchronous client from builder 
157+     // Build  an asynchronous client from builder 
159158    #[ cfg( feature = "async" ) ]  
160159    pub  fn  build_async ( self )  -> Result < AsyncClient ,  Error >  { 
161160        AsyncClient :: from_builder ( self ) 
162161    } 
163162} 
164163
165- /// Errors that can happen during a sync with  `Esplora` 
164+ /// Errors that can happen during a request to  `Esplora` servers.  
166165#[ derive( Debug ) ]  
167166pub  enum  Error  { 
168167    /// Error during `minreq` HTTP request 
@@ -185,9 +184,9 @@ pub enum Error {
185184HexToBytes ( bitcoin:: hex:: HexToBytesError ) , 
186185    /// Transaction not found 
187186TransactionNotFound ( Txid ) , 
188-     /// Header height not found 
187+     /// Block  Header height not found 
189188HeaderHeightNotFound ( u32 ) , 
190-     /// Header hash not found 
189+     /// Block  Header hash not found 
191190HeaderHashNotFound ( BlockHash ) , 
192191    /// Invalid HTTP Header name specified 
193192InvalidHttpHeaderName ( String ) , 
@@ -220,7 +219,7 @@ impl_error!(::minreq::Error, Minreq, Error);
220219#[ cfg( feature = "async" ) ]  
221220impl_error ! ( :: reqwest:: Error ,  Reqwest ,  Error ) ; 
222221impl_error ! ( std:: num:: ParseIntError ,  Parsing ,  Error ) ; 
223- impl_error ! ( consensus:: encode:: Error ,  BitcoinEncoding ,  Error ) ; 
222+ impl_error ! ( bitcoin :: consensus:: encode:: Error ,  BitcoinEncoding ,  Error ) ; 
224223impl_error ! ( bitcoin:: hex:: HexToArrayError ,  HexToArray ,  Error ) ; 
225224impl_error ! ( bitcoin:: hex:: HexToBytesError ,  HexToBytes ,  Error ) ; 
226225
0 commit comments