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