From 4afb624c450229b5f0a3554d13de35fd2db8f682 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 19 Feb 2014 16:28:08 +0100 Subject: WIP state object --- ethutil/trie.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ethutil') 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 -- cgit v1.2.3