File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ impl AsyncClient {
113
113
Ok ( Some ( resp. error_for_status ( ) ?. json ( ) . await ?) )
114
114
}
115
115
116
+ #[ deprecated(
117
+ since = "0.1.2" ,
118
+ note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
119
+ ) ]
116
120
/// Get a [`BlockHeader`] given a particular block height.
117
121
pub async fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
118
122
let block_hash = self . get_block_hash ( block_height) . await ?;
Original file line number Diff line number Diff line change @@ -127,6 +127,10 @@ impl BlockingClient {
127
127
}
128
128
129
129
/// Get a [`BlockHeader`] given a particular block height.
130
+ #[ deprecated(
131
+ since = "0.1.2" ,
132
+ note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
133
+ ) ]
130
134
pub fn get_header ( & self , block_height : u32 ) -> Result < BlockHeader , Error > {
131
135
let block_hash = self . get_block_hash ( block_height) ?;
132
136
self . get_header_by_hash ( & block_hash)
You can’t perform that action at this time.
0 commit comments