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 authored and tac0turtle committed Oct 27, 2022
1 parent 7f698ba commit 8ea4a74
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 @@ -346,7 +346,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 8ea4a74

Please sign in to comment.