mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 01:23:45 +00:00
WIP state object
This commit is contained in:
parent
39b6eaf51c
commit
4afb624c45
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue