Fixed reverting error

This commit is contained in:
obscuren
2014-07-03 16:07:21 +02:00
parent 5d67139206
commit 8baa0f84e7
4 changed files with 28 additions and 37 deletions

View File

@ -157,9 +157,11 @@ func (self *State) Copy() *State {
}
func (self *State) Set(state *State) {
//s.trie = snapshot.trie
//s.stateObjects = snapshot.stateObjects
self = state
if state == nil {
panic("Tried setting 'state' to nil through 'Set'")
}
*self = *state
}
func (s *State) Put(key, object []byte) {