From a0a3d4728a4cbf6ee7c46bb0622475c2c34b9ce9 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Wed, 30 Aug 2023 10:19:52 +1000 Subject: [PATCH] Fix deprecation notice Recently we deprecated the `segwit_signature_hash` function but during development the deprecation notice got stale. Fix deprecation notice to use the actual function names. --- bitcoin/src/crypto/sighash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitcoin/src/crypto/sighash.rs b/bitcoin/src/crypto/sighash.rs index a24d9319..5d304063 100644 --- a/bitcoin/src/crypto/sighash.rs +++ b/bitcoin/src/crypto/sighash.rs @@ -844,7 +844,7 @@ impl> SighashCache { } /// Computes the BIP143 sighash for any flag type. - #[deprecated(since = "0.31.0", note = "use segwit_v0_signature_hash instead")] + #[deprecated(since = "0.31.0", note = "use (p2wpkh|p2wsh)_signature_hash instead")] pub fn segwit_signature_hash( &mut self, input_index: usize,