Support for Zebra 2.1.0 #102

Merged
pitmutt merged 97 commits from rav001 into master 2024-12-14 12:51:07 +00:00
Showing only changes of commit b6d490d053 - Show all commits

View file

@ -1590,7 +1590,7 @@ pub extern "C" fn rust_wrapper_combine_orchard_nodes(
){ ){
let left_in: Vec<u8> = marshall_from_haskell_var(left, left_len, RW); let left_in: Vec<u8> = marshall_from_haskell_var(left, left_len, RW);
let right_in: Vec<u8> = marshall_from_haskell_var(right, right_len, RW); let right_in: Vec<u8> = marshall_from_haskell_var(right, right_len, RW);
if left_in.len() > 1 { if left_in.len() == 1 {
let n = MerkleHashOrchard::combine(Level::new(level), &MerkleHashOrchard::empty_leaf(), &MerkleHashOrchard::empty_leaf()); let n = MerkleHashOrchard::combine(Level::new(level), &MerkleHashOrchard::empty_leaf(), &MerkleHashOrchard::empty_leaf());
let h = Hhex { bytes: n.to_bytes().to_vec() }; let h = Hhex { bytes: n.to_bytes().to_vec() };
marshall_to_haskell_var(&h, out, out_len, RW); marshall_to_haskell_var(&h, out, out_len, RW);