mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-29 14:22:55 +00:00
Added a copy method to state
This commit is contained in:
parent
2b9b02812e
commit
826c827e6b
1 changed files with 4 additions and 0 deletions
|
|
@ -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 a new issue