Remove deprecated method use for sighash conversion

Post-merge  follow-up. Feel free to add other changes/nits which hadn't get into .
This commit is contained in:
Dr. Maxim Orlovsky 2022-03-28 09:54:13 +02:00 committed by GitHub
parent 6417c37749
commit c3d30d51a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
src/blockdata

View File

@ -356,7 +356,7 @@ impl Transaction {
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
let mut tx = Transaction {