mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 08:49:29 +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)
|
return s.trie.Cmp(other.trie)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *State) Copy() *State {
|
||||||
|
return NewState(s.trie.Copy())
|
||||||
|
}
|
||||||
|
|
||||||
type ObjType byte
|
type ObjType byte
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue