forked from cerc-io/plugeth
Added a copy method to state
This commit is contained in:
parent
2b9b02812e
commit
826c827e6b
@ -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…
Reference in New Issue
Block a user