Skip to content

Commit

Permalink
fix: changed Self::note_index() to Self::leaf_index()
Browse files Browse the repository at this point in the history
  • Loading branch information
bobbinth committed Apr 6, 2024
1 parent 50a8268 commit e7f22c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion objects/src/block/note_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl BlockNoteTree {
note_idx_in_batch: usize,
) -> Result<MerklePath, MerkleError> {
// get the path to the leaf containing the note (path len = 21)
let leaf_index = LeafIndex::new(Self::note_index(batch_idx, note_idx_in_batch))?;
let leaf_index = LeafIndex::new(Self::leaf_index(batch_idx, note_idx_in_batch))?;

// move up the path by removing the first node, this path now points to the parent of the
// note path
Expand Down

0 comments on commit e7f22c9

Please sign in to comment.