Merge rust-bitcoin/rust-bitcoin#2041: Fix deprecation notice

a0a3d4728a Fix deprecation notice (Tobin C. Harding)

Pull request description:

  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.

ACKs for top commit:
  RCasatta:
    ACK a0a3d4728a
  apoelstra:
    ACK a0a3d4728a

Tree-SHA512: d84941b605c5bc6ceab75cd60eb820c1d2c16fcd1431dc3927dc22d79886d3de26fd796fab92d97e7f8d567eab0b5a1987303107720524e7b648b1168541a2ed
This commit is contained in:
Riccardo Casatta 2023-09-12 09:00:43 +02:00
commit 3dc75b5071
No known key found for this signature in database
GPG Key ID: FD986A969E450397
1 changed files with 1 additions and 1 deletions

View File

@ -844,7 +844,7 @@ impl<R: Borrow<Transaction>> SighashCache<R> {
}
/// 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,