WIP state object

This commit is contained in:
obscuren 2014-02-19 16:28:08 +01:00
parent 39b6eaf51c
commit 4afb624c45

View File

@ -5,6 +5,15 @@ import (
"reflect" "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 { type Node struct {
Key []byte Key []byte
Value *Value Value *Value