aboutsummaryrefslogtreecommitdiffstats
path: root/ptrie/valuenode.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-11-18 19:02:13 +0800
committerobscuren <geffobscura@gmail.com>2014-11-18 19:02:13 +0800
commitf7417d3552de86f5acf969b6eb882502fd104a11 (patch)
tree939043bfbb72510326446b022e4615d58616e2e3 /ptrie/valuenode.go
parenta19d2c22782fa85cd38de246d9801fa1ebd0660a (diff)
downloadgo-tangerine-f7417d3552de86f5acf969b6eb882502fd104a11.tar.gz
go-tangerine-f7417d3552de86f5acf969b6eb882502fd104a11.tar.zst
go-tangerine-f7417d3552de86f5acf969b6eb882502fd104a11.zip
New modified patricia trie
Diffstat (limited to 'ptrie/valuenode.go')
-rw-r--r--ptrie/valuenode.go13
1 files changed, 13 insertions, 0 deletions
diff --git a/ptrie/valuenode.go b/ptrie/valuenode.go
new file mode 100644
index 000000000..c226621a7
--- /dev/null
+++ b/ptrie/valuenode.go
@@ -0,0 +1,13 @@
+package ptrie
+
+type ValueNode struct {
+ trie *Trie
+ data []byte
+}
+
+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) RlpData() interface{} { return self.data }
+func (self *ValueNode) Hash() interface{} { return self.data }