Compare commits

..

No commits in common. "37b485288d0cf8999e35c24382dd9c69a4a4a00a" and "2108f46afa1b3af2d400846f17f88c46bbcf2514" have entirely different histories.

View file

@ -1562,17 +1562,17 @@ 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 { Ok(()) => {
Ok(()) => { let h = Hhex { bytes: out_bytes};
let h = Hhex { bytes: out_bytes}; marshall_to_haskell_var(&h, out, out_len, RW);
marshall_to_haskell_var(&h, out, out_len, RW); },
}, Err(_e) => {
Err(_e) => { let h0 = Hhex { bytes: vec![0]};
let h0 = Hhex { bytes: vec![0]}; marshall_to_haskell_var(&h0, out, out_len, RW);
marshall_to_haskell_var(&h0, out, out_len, RW); }
} }
} }
} }