Skip to content

Commit 18b7d9f

Browse files
committed
Merge #22: Fix deprecation version of get_header
3a93ee5 Fix deprecation version of `get_header` (Elias Rohrer) Pull request description: In #17, we deprecated `get_header` and assumed the next version would be 0.1.2, but it turned out to be 0.2. Top commit has no ACKs. Tree-SHA512: 2b552730054def1dde12358527ef4c84fc225fe3359b41315318952162c8a28065620259212000bcd28364204f26b21f0e3586d5d231b11bf175db4954b813f7
2 parents 2ffd44f + 3a93ee5 commit 18b7d9f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl AsyncClient {
114114
}
115115

116116
#[deprecated(
117-
since = "0.1.2",
117+
since = "0.2.0",
118118
note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
119119
)]
120120
/// Get a [`BlockHeader`] given a particular block height.

src/blocking.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ impl BlockingClient {
128128

129129
/// Get a [`BlockHeader`] given a particular block height.
130130
#[deprecated(
131-
since = "0.1.2",
131+
since = "0.2.0",
132132
note = "Deprecated to improve alignment with Esplora API. Users should use `get_block_hash` and `get_header_by_hash` methods directly."
133133
)]
134134
pub fn get_header(&self, block_height: u32) -> Result<BlockHeader, Error> {

0 commit comments

Comments
 (0)