Update nssa/src/merkle_tree/mod.rs

Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
jonesmarvin8 2025-09-05 16:27:43 -04:00 committed by GitHub
parent 6e7520bfea
commit 73c11600ba
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -105,7 +105,7 @@ impl MerkleTree {
let mut node_index = new_index + self.capacity - 1;
let mut node_hash = hash_value(&value);
//add new node to nodes
// Insert the new node at the bottom layer
self.set_node(node_index, node_hash);
self.length += 1;