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/shortnode.go | |
parent | e70529a97785012368e7e0d5b272cccab705e551 (diff) | |
download | dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.gz dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.bz2 dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.lz dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.xz dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.tar.zst dexon-0f460ad26e864ae8b4c4cf99147c5b57a10f3be9.zip |
Added caching and database interface to trie
* Reimplemented caching for trie
* Reimplemented resetting and persisting trie
Diffstat (limited to 'ptrie/shortnode.go')
-rw-r--r-- | ptrie/shortnode.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ptrie/shortnode.go b/ptrie/shortnode.go index 49319c555..73ff2914b 100644 --- a/ptrie/shortnode.go +++ b/ptrie/shortnode.go @@ -17,7 +17,7 @@ func (self *ShortNode) Value() Node { return self.value } func (self *ShortNode) Dirty() bool { return true } -func (self *ShortNode) Copy() Node { return self } +func (self *ShortNode) Copy() Node { return NewShortNode(self.trie, self.key, self.value) } func (self *ShortNode) RlpData() interface{} { return []interface{}{self.key, self.value.Hash()} |