Merge pull request #157 from adityapk00/transparent_compile_fix

Compile Fix: Add missing sighash declaration
This commit is contained in:
str4d 2019-11-14 19:03:59 +00:00 committed by GitHub
commit 141821d3c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -212,6 +212,7 @@ impl TransparentInputs {
#[cfg(feature = "transparent-inputs")]
fn apply_signatures(&self, mtx: &mut TransactionData, consensus_branch_id: u32) {
let mut sighash = [0u8; 32];
for (i, info) in self.inputs.iter().enumerate() {
sighash.copy_from_slice(&signature_hash_data(
mtx,