Merge rust-bitcoin/rust-bitcoin#918: Fix deprecated since version

8d602b8778 Fix deprecated since version (Tobin Harding)

Pull request description:

  We deprecated the `bip143::SigHashCache` in

  ```
  commit 53d0e176d3
  Author: <elided>
  Date:   Fri Jul 16 10:44:18 2021 +0200

      Deprecate bip143::SigHashCache in favor of sighash::SigHashCache

      ...
  ```

  This means these changes are unreleased so the deprecated since version
  should be the upcoming 0.28 release.

ACKs for top commit:
  sanket1729:
    Nice catch! ACK 8d602b8778
  dr-orlovsky:
    ACK 8d602b8778

Tree-SHA512: 7fba5b542de0d03e519a77204908cacb78c160bc41e02010b2bb258d8620d988dbc5d686a7b9f5144bf5afea414cb2c1b0c0f4e817c08b16f4c48c6f8d0de427
This commit is contained in:
Dr. Maxim Orlovsky 2022-03-29 09:03:33 +03:00
commit 0a2d45de09
No known key found for this signature in database
GPG Key ID: AF91255DEA466640
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ impl SighashComponents {
}
/// A replacement for SigHashComponents which supports all sighash modes
#[deprecated(since = "0.27.0", note = "please use [sighash::SigHashCache] instead")]
#[deprecated(since = "0.28.0", note = "please use [sighash::SigHashCache] instead")]
pub struct SigHashCache<R: Deref<Target = Transaction>> {
cache: sighash::SigHashCache<R>,
}