mirror of https://github.com/status-im/op-geth.git
trie: removed shallow copies (thanks to @fjl)
This commit is contained in:
parent
0a1ff68c11
commit
47460b3b4a
|
@ -23,7 +23,7 @@ func (self *FullNode) Copy(t *Trie) Node {
|
||||||
nnode := NewFullNode(t)
|
nnode := NewFullNode(t)
|
||||||
for i, node := range self.nodes {
|
for i, node := range self.nodes {
|
||||||
if node != nil {
|
if node != nil {
|
||||||
nnode.nodes[i] = node.Copy(t)
|
nnode.nodes[i] = node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
nnode.dirty = true
|
nnode.dirty = true
|
||||||
|
|
Loading…
Reference in New Issue