Skip to content

Commit

Permalink
Apply Eclesio's comments
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Jun 6, 2022
1 parent 50b7dbe commit a509c65
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/trie/node/decode.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func Decode(reader io.Reader) (n *Node, err error) {
// find other values using the persistent database.
func decodeBranch(reader io.Reader, header byte) (node *Node, err error) {
node = &Node{
Dirty: true,
Children: make([]*Node, ChildrenCapacity),
}

Expand Down Expand Up @@ -120,8 +121,6 @@ func decodeBranch(reader io.Reader, header byte) (node *Node, err error) {
}
}

node.Dirty = true

return node, nil
}

Expand Down

0 comments on commit a509c65

Please sign in to comment.