aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-19 23:28:08 +0800
committerobscuren <geffobscura@gmail.com>2014-02-19 23:28:08 +0800
commit4afb624c450229b5f0a3554d13de35fd2db8f682 (patch)
tree533384eb1f74eda1cd7abb1ed322821bda43d9c4
parent39b6eaf51cc278feb817570e7fe02fc7ceefeb9e (diff)
downloadgo-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar.gz
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar.bz2
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar.lz
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar.xz
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.tar.zst
go-tangerine-4afb624c450229b5f0a3554d13de35fd2db8f682.zip
WIP state object
-rw-r--r--ethutil/trie.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/ethutil/trie.go b/ethutil/trie.go
index c25bd80cb..e900a0a63 100644
--- a/ethutil/trie.go
+++ b/ethutil/trie.go
@@ -5,6 +5,15 @@ import (
"reflect"
)
+// TODO
+// A StateObject is an object that has a state root
+// This is goig to be the object for the second level caching (the caching of object which have a state such as contracts)
+type StateObject interface {
+ State() *Trie
+ Sync()
+ Undo()
+}
+
type Node struct {
Key []byte
Value *Value