File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -80,10 +80,7 @@ VM.prototype.runCall = require('./runCall.js')
80
80
VM . prototype . runBlockchain = require ( './runBlockchain.js' )
81
81
82
82
VM . prototype . copy = function ( ) {
83
- return new VM ( {
84
- state : this . trie . copy ( ) ,
85
- blockchain : this . blockchain
86
- } )
83
+ return new VM ( { stateManager : this . stateManager . copy ( ) } )
87
84
}
88
85
89
86
/**
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ function StateManager (opts) {
33
33
34
34
var proto = StateManager . prototype
35
35
36
+ proto . copy = function ( ) {
37
+ return new StateManager ( { trie : this . trie . copy ( ) , blockchain : this . blockchain } )
38
+ }
39
+
36
40
// gets the account from the cache, or triggers a lookup and stores
37
41
// the result in the cache
38
42
proto . getAccount = function ( address , cb ) {
You can’t perform that action at this time.
0 commit comments