mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-04 14:23:11 +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
73c11600ba
commit
1e7c3e1555
@ -134,7 +134,7 @@ impl MerkleTree {
|
||||
|
||||
while node_index != root_index {
|
||||
let parent_index = (node_index - 1) >> 1;
|
||||
//left children have odd indices, and right children have even indices
|
||||
// Left children have odd indices, and right children have even indices
|
||||
let is_left_child = node_index & 1 == 1;
|
||||
let sibling_index = if is_left_child {
|
||||
node_index + 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user