Fix bug in Orchard witness calculation
This commit is contained in:
parent
302a2f87fa
commit
37b485288d
1 changed files with 11 additions and 11 deletions
|
@ -1562,6 +1562,7 @@ pub extern "C" fn rust_wrapper_update_orchard_witness(
|
||||||
let n = MerkleHashOrchard::from_cmx(&orchard_note_comm.unwrap());
|
let n = MerkleHashOrchard::from_cmx(&orchard_note_comm.unwrap());
|
||||||
iw.append(n);
|
iw.append(n);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
let mut out_bytes: Vec<u8> = Vec::new();
|
let mut out_bytes: Vec<u8> = Vec::new();
|
||||||
let result = write_incremental_witness(&iw, &mut out_bytes);
|
let result = write_incremental_witness(&iw, &mut out_bytes);
|
||||||
match result {
|
match result {
|
||||||
|
@ -1575,7 +1576,6 @@ pub extern "C" fn rust_wrapper_update_orchard_witness(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#[no_mangle]
|
#[no_mangle]
|
||||||
pub extern "C" fn rust_wrapper_decode_sapling_address(
|
pub extern "C" fn rust_wrapper_decode_sapling_address(
|
||||||
|
|
Loading…
Reference in a new issue