Merge rust-bitcoin/rust-bitcoin#913: Remove deprecated method use for sighash conversion

c3d30d51a7 Remove deprecated method use for sighash conversion (Dr. Maxim Orlovsky)

Pull request description:

  Post-merge #796 follow-up. Feel free to add other changes/nits which hadn't get into #796.

ACKs for top commit:
  tcharding:
    ACK c3d30d51a7
  sanket1729:
    ACK c3d30d51a7
  apoelstra:
    ACK c3d30d51a7

Tree-SHA512: 7418f90bad9ce43b5504a3e45f06fecd636f62f2f7bd75bfc27e29faa181202595ed9b5175866e0fce01a301ea34c2b07afb16e658757215823965e7e1440c2e
This commit is contained in:
Andrew Poelstra 2022-03-28 13:27:51 +00:00
commit e2cae7671a
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ impl Transaction {
return Ok(()) return Ok(())
} }
let (sighash, anyone_can_pay) = EcdsaSigHashType::from_u32_consensus(sighash_type).split_anyonecanpay_flag(); let (sighash, anyone_can_pay) = EcdsaSigHashType::from_consensus(sighash_type).split_anyonecanpay_flag();
// Build tx to sign // Build tx to sign
let mut tx = Transaction { let mut tx = Transaction {