From f805bd9d8a65d6787f5905be53f2a4c37b952cda Mon Sep 17 00:00:00 2001 From: Daniel Olshansky Date: Thu, 13 Jun 2024 20:12:36 -0700 Subject: [PATCH] Update root.go Co-authored-by: Redouane Lakrache Signed-off-by: Daniel Olshansky --- root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root.go b/root.go index ff8858a..94d0b63 100644 --- a/root.go +++ b/root.go @@ -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))