mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-07 15:53:14 +00:00
Update nssa/src/merkle_tree/mod.rs
Co-authored-by: Sergio Chouhy <41742639+schouhy@users.noreply.github.com>
This commit is contained in:
parent
6e7520bfea
commit
73c11600ba
@ -105,7 +105,7 @@ impl MerkleTree {
|
|||||||
let mut node_index = new_index + self.capacity - 1;
|
let mut node_index = new_index + self.capacity - 1;
|
||||||
let mut node_hash = hash_value(&value);
|
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.set_node(node_index, node_hash);
|
||||||
self.length += 1;
|
self.length += 1;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user