aboutsummaryrefslogtreecommitdiffstats
path: root/trie/fullnode.go
diff options
context:
space:
mode:
Diffstat (limited to 'trie/fullnode.go')
-rw-r--r--trie/fullnode.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/trie/fullnode.go b/trie/fullnode.go
index ebbe7f384..522fdb373 100644
--- a/trie/fullnode.go
+++ b/trie/fullnode.go
@@ -20,11 +20,11 @@ func (self *FullNode) Branches() []Node {
return self.nodes[:16]
}
-func (self *FullNode) Copy() Node {
- nnode := NewFullNode(self.trie)
+func (self *FullNode) Copy(t *Trie) Node {
+ nnode := NewFullNode(t)
for i, node := range self.nodes {
if node != nil {
- nnode.nodes[i] = node
+ nnode.nodes[i] = node.Copy(t)
}
}