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: ACKc3d30d51a7
sanket1729: ACKc3d30d51a7
apoelstra: ACKc3d30d51a7
Tree-SHA512: 7418f90bad9ce43b5504a3e45f06fecd636f62f2f7bd75bfc27e29faa181202595ed9b5175866e0fce01a301ea34c2b07afb16e658757215823965e7e1440c2e
This commit is contained in:
commit
e2cae7671a
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue