Skip to content

Commit

Permalink
Update root.go
Browse files Browse the repository at this point in the history
Co-authored-by: Redouane Lakrache <r3d0ne@gmail.com>
Signed-off-by: Daniel Olshansky <olshansky.daniel@gmail.com>
  • Loading branch information
Olshansk and red-0ne authored Jun 14, 2024
1 parent 5b89a48 commit f805bd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func (r MerkleRoot) Sum() uint64 {
// count of the number of non-empty leafs in the tree.
func (r MerkleRoot) Count() uint64 {
if len(r)%nonSumRootSizeBytes == 0 {
panic("roo#sum: not a merkle sum trie")
panic("root#count: not a merkle sum trie")
}

_, firstCountByteIdx := getFirstMetaByteIdx([]byte(r))
Expand Down

0 comments on commit f805bd9

Please sign in to comment.