Update nightly version

This commit is contained in:
Luke Parker
2025-02-04 00:53:22 -05:00
parent 22e411981a
commit 5a7b815e2e
8 changed files with 15 additions and 16 deletions

View File

@@ -9,7 +9,7 @@ pub(crate) fn merkle(hash_args: &[[u8; 32]]) -> [u8; 32] {
let zero = [0; 32];
let mut interim;
while hashes.len() > 1 {
interim = Vec::with_capacity((hashes.len() + 1) / 2);
interim = Vec::with_capacity(hashes.len().div_ceil(2));
let mut i = 0;
while i < hashes.len() {