Skip to content

Commit

Permalink
Update merkle/types/db.go comment
Browse files Browse the repository at this point in the history
Co-authored-by: beer-1 <[email protected]>
  • Loading branch information
sh-cha and beer-1 authored Dec 10, 2024
1 parent 2abee5e commit d6746f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions merkle/types/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ func NewFinalizedTreeInfo(treeIndex uint64, treeHeight uint8, root []byte, start
}

func (f FinalizedTreeInfo) Key() []byte {
// Store the finalized tree information with the start leaf index as its prefix.
// This makes it easier to retrieve proofs using the L2 sequence number of the withdrawal request.
// For more details, see the `GetProofs()` function.
return PrefixedFinalizedTreeKey(f.StartLeafIndex)
}

Expand Down

0 comments on commit d6746f9

Please sign in to comment.