Clarify length of return buffer for appended leaves

This commit is contained in:
Jack Grigg 2019-12-05 14:33:03 +00:00
parent f1619f896c
commit cca1670248
No known key found for this signature in database
GPG Key ID: 9E8255172BBF9898
1 changed files with 1 additions and 1 deletions

View File

@ -1230,7 +1230,7 @@ pub extern "system" fn librustzcash_mmr_append(
nn_ptr: *const [u8; zcash_mmr::MAX_NODE_DATA_SIZE],
// Return of root commitment
rt_ret: *mut [u8; 32],
// Return buffer for appended leaves, should be pre-allocated of log2(t_len)+1 length
// Return buffer for appended leaves, should be pre-allocated of ceiling(log2(t_len)) length
buf_ret: *mut [c_uchar; zcash_mmr::MAX_NODE_DATA_SIZE],
) -> u32 {
let new_node_bytes: &[u8; zcash_mmr::MAX_NODE_DATA_SIZE] = unsafe {