Added a copy method to state

pull/150/head
obscuren 11 years ago
parent 2b9b02812e
commit 826c827e6b
  1. 4
      ethchain/state.go

@ -112,6 +112,10 @@ func (s *State) Cmp(other *State) bool {
return s.trie.Cmp(other.trie)
}
func (s *State) Copy() *State {
return NewState(s.trie.Copy())
}
type ObjType byte
const (

Loading…
Cancel
Save