File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -132,16 +132,6 @@ impl AsyncClient {
132
132
}
133
133
}
134
134
135
- #[ deprecated(
136
- since = "0.2.0" ,
137
- note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
138
- ) ]
139
- /// Get a [`BlockHeader`] given a particular block height.
140
- pub async fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
141
- let block_hash = self . get_block_hash ( block_height) . await ?;
142
- self . get_header_by_hash ( & block_hash) . await
143
- }
144
-
145
135
/// Get a [`BlockHeader`] given a particular block hash.
146
136
pub async fn get_header_by_hash ( & self , block_hash : & BlockHash ) -> Result < BlockHeader , Error > {
147
137
let resp = self
Original file line number Diff line number Diff line change @@ -201,16 +201,6 @@ impl BlockingClient {
201
201
self . get_response_json ( & format ! ( "/tx/{}/status" , txid) )
202
202
}
203
203
204
- /// Get a [`BlockHeader`] given a particular block height.
205
- #[ deprecated(
206
- since = "0.2.0" ,
207
- note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
208
- ) ]
209
- pub fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
210
- let block_hash = self . get_block_hash ( block_height) ?;
211
- self . get_header_by_hash ( & block_hash)
212
- }
213
-
214
204
/// Get a [`BlockHeader`] given a particular block hash.
215
205
pub fn get_header_by_hash ( & self , block_hash : & BlockHash ) -> Result < BlockHeader , Error > {
216
206
self . get_response_hex ( & format ! ( "/block/{}/header" , block_hash) )
You can’t perform that action at this time.
0 commit comments