From 75d1d7c57eaf92c0693b684d687c5cf2d44c489c Mon Sep 17 00:00:00 2001 From: Xu Liang Date: Mon, 13 Mar 2023 02:14:34 +0800 Subject: [PATCH] remove commit in clear --- smt.go | 1 - 1 file changed, 1 deletion(-) diff --git a/smt.go b/smt.go index 8606b9d..d16ff89 100644 --- a/smt.go +++ b/smt.go @@ -765,7 +765,6 @@ func (tree *BNBSparseMerkleTree) Clear(recentVersion *Version) (err error) { tree.rootSize += uint64(versionSize * len(tree.root.Children[i].Versions)) } } - _, err = tree.Commit(&version) return err }