aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-06-17 17:07:37 +0800
committerobscuren <geffobscura@gmail.com>2014-06-17 17:07:37 +0800
commit3621988e15c025d2bd7b80e4691a6b236574f0a1 (patch)
tree6c77ce8bedf8e0fd341f9d8850df6991b23a497d /ethchain/state.go
parent53e30f750dd0c91279bfebe01bb12fd170cb74ff (diff)
downloaddexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar.gz
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar.bz2
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar.lz
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar.xz
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.tar.zst
dexon-3621988e15c025d2bd7b80e4691a6b236574f0a1.zip
Removed deprecated states
Diffstat (limited to 'ethchain/state.go')
-rw-r--r--ethchain/state.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index f5a3d3071..993f1fb08 100644
--- a/ethchain/state.go
+++ b/ethchain/state.go
@@ -13,8 +13,6 @@ import (
type State struct {
// The trie for this structure
trie *ethutil.Trie
- // Nested states
- states map[string]*State
stateObjects map[string]*StateObject
@@ -23,7 +21,7 @@ type State struct {
// Create a new state from a given trie
func NewState(trie *ethutil.Trie) *State {
- return &State{trie: trie, states: make(map[string]*State), stateObjects: make(map[string]*StateObject), manifest: NewManifest()}
+ return &State{trie: trie, stateObjects: make(map[string]*StateObject), manifest: NewManifest()}
}
// Resets the trie and all siblings
@@ -155,7 +153,7 @@ func (s *State) Snapshot() *State {
func (s *State) Revert(snapshot *State) {
s.trie = snapshot.trie
- s.states = snapshot.states
+ s.stateObjects = snapshot.stateObjects
}
func (s *State) Put(key, object []byte) {