Skip to content

Commit

Permalink
refactor: disable remaining fast node logic in mutable tree (#589)
Browse files Browse the repository at this point in the history
  • Loading branch information
p0mvn committed Oct 16, 2022
1 parent b95695e commit 78a5f11
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mutable_tree.go
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,9 @@ func (tree *MutableTree) remove(key []byte) (value []byte, orphaned []*Node, rem
return nil, nil, false, nil
}

tree.addUnsavedRemoval(key)
if !tree.skipFastStorageUpgrade {
tree.addUnsavedRemoval(key)
}

if newRoot == nil && newRootHash != nil {
tree.root, err = tree.ndb.GetNode(newRootHash)
Expand Down

0 comments on commit 78a5f11

Please sign in to comment.