Skip to content

Commit b2a2fc0

Browse files
committed
pass initial version at immutable tree creation
1 parent af7ae13 commit b2a2fc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mutable_tree.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ func NewMutableTree(db dbm.DB, cacheSize int, skipFastStorageUpgrade bool, lg lo
5656
}
5757

5858
ndb := newNodeDB(db, cacheSize, opts, lg)
59-
head := &ImmutableTree{ndb: ndb, skipFastStorageUpgrade: skipFastStorageUpgrade}
59+
head := &ImmutableTree{ndb: ndb, skipFastStorageUpgrade: skipFastStorageUpgrade, version: int64(opts.InitialVersion)}
6060

6161
return &MutableTree{
6262
logger: lg,

0 commit comments

Comments
 (0)