Skip to content

Commit

Permalink
PathHasherSize
Browse files Browse the repository at this point in the history
  • Loading branch information
Olshansk committed Jun 14, 2024
1 parent 0f9b3f3 commit 9a18296
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trie_spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ func (spec *TrieSpec) Spec() *TrieSpec {
return spec
}

// PathHasherSize returns the length (in bytes) of digests produced by the
// path hasher
func (spec *TrieSpec) PathHasherSize() int { return spec.ph.PathSize() }

// placeholder returns the default placeholder value depending on the trie type
func (spec *TrieSpec) placeholder() []byte {
if spec.sumTrie {
Expand Down

0 comments on commit 9a18296

Please sign in to comment.