Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from binance-chain/develop
Browse files Browse the repository at this point in the history
R4R: Re-release v0.12.0-binance.3
  • Loading branch information
HaoyangLiu authored Nov 7, 2019
2 parents 40991da + 84d120b commit 574f4bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions mutable_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,8 @@ func (tree *MutableTree) Load() (int64, error) {
func (tree *MutableTree) SetVersion(version int64) {
tree.version = version
tree.ndb.latestVersion = version
tree.nodeVersions.nextVersion = version
tree.nodeVersions.firstVersion = version - 1
}

// Returns the version number of the latest version found
Expand Down
2 changes: 1 addition & 1 deletion node_versions.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (nv *NodeVersions) Reset(tree *ImmutableTree) {
nv.nextVersionIdx = 0
nv.totalNodes = 0

if tree == nil || tree.root == nil {
if tree == nil {
nv.firstVersion = 0
nv.nextVersion = 1
return
Expand Down

0 comments on commit 574f4bd

Please sign in to comment.