Skip to content

Commit 7e81233

Browse files
committed
fix: pass initial version at immutable tree creation (cosmos#880)
1 parent 370cd83 commit 7e81233

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mutable_tree.go

+2
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,8 @@ func (tree *MutableTree) LoadVersion(targetVersion int64) (int64, error) {
461461

462462
if firstVersion == 0 {
463463
if targetVersion <= 0 {
464+
tree.version = int64(tree.ndb.opts.InitialVersion)
465+
464466
if !tree.skipFastStorageUpgrade {
465467
tree.mtx.Lock()
466468
defer tree.mtx.Unlock()

0 commit comments

Comments
 (0)