Skip to content

Commit

Permalink
remove commit in clear
Browse files Browse the repository at this point in the history
  • Loading branch information
liangxuuu committed Mar 12, 2023
1 parent fa4a306 commit 75d1d7c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion smt.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 75d1d7c

Please sign in to comment.