Skip to content

Commit

Permalink
chore: indexed merkle tree emit two changelog entries at init (#901)
Browse files Browse the repository at this point in the history
Issue:
- in indexed Merkle tree the changelog indices between the Merkle tree changelog and the indexed changelog are different by 1
- this pr emits a second indexed changelog for consistency
  • Loading branch information
ananas-block authored Jun 28, 2024
1 parent 47c0616 commit d714d9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions merkle-tree/indexed/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ where
proof: H::zero_bytes()[..NET_HEIGHT].try_into().unwrap(),
changelog_index: 0,
};
self.indexed_changelog.push(changelog_entry.clone());
self.indexed_changelog.push(changelog_entry);
Ok(())
}
Expand Down

0 comments on commit d714d9a

Please sign in to comment.