aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/state.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/ethchain/state.go b/ethchain/state.go
index be25fe7b4..b9c2c576d 100644
--- a/ethchain/state.go
+++ b/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 (