diff options
author | obscuren <geffobscura@gmail.com> | 2014-11-19 23:21:28 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-11-19 23:21:28 +0800 |
commit | 0f460ad26e864ae8b4c4cf99147c5b57a10f3be9 (patch) | |
tree | cd75d90107a450b02a36c0258bf404d2d2ddaaa7 /ptrie/valuenode.go | |
parent | e70529a97785012368e7e0d5b272cccab705e551 (diff) | |
download | go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.gz go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.bz2 go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.lz go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.xz go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.zst go-tangerine-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.zip |
Added caching and database interface to trie
* Reimplemented caching for trie
* Reimplemented resetting and persisting trie
Diffstat (limited to 'ptrie/valuenode.go')
-rw-r--r-- | ptrie/valuenode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptrie/valuenode.go b/ptrie/valuenode.go index c226621a7..c593eb6c6 100644 --- a/ptrie/valuenode.go +++ b/ptrie/valuenode.go @@ -8,6 +8,6 @@ type ValueNode struct { func (self *ValueNode) Value() Node { return self } // Best not to call :-) func (self *ValueNode) Val() []byte { return self.data } func (self *ValueNode) Dirty() bool { return true } -func (self *ValueNode) Copy() Node { return self } +func (self *ValueNode) Copy() Node { return &ValueNode{self.trie, self.data} } func (self *ValueNode) RlpData() interface{} { return self.data } func (self *ValueNode) Hash() interface{} { return self.data } |