From 303e08f3c4256330a0605e1bd98abc6c59622808 Mon Sep 17 00:00:00 2001 From: Hoon <48665813+sh-cha@users.noreply.github.com> Date: Tue, 10 Dec 2024 14:02:14 +0900 Subject: [PATCH] Update merkle/types/db.go Co-authored-by: beer-1 <147697694+beer-1@users.noreply.github.com> --- merkle/types/db.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/merkle/types/db.go b/merkle/types/db.go index 1c710ad..4637e22 100644 --- a/merkle/types/db.go +++ b/merkle/types/db.go @@ -52,7 +52,8 @@ func (t LegacyTreeInfo) Migrate(version uint64) TreeInfo { } type TreeInfo struct { - // Version of the tree + // Version represents the chain height. We store the tree information for each height to + // maintain a record of the state of the tree at that specific height. Version uint64 `json:"version"` // Index of the tree used as prefix for the keys