|
|
@ -238,20 +238,6 @@ function ExecutionContext () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.checkpointAndCommit = function (cb, checkpointCount) { |
|
|
|
|
|
|
|
// due to issue https://github.com/ethereumjs/ethereumjs-vm/issues/567
|
|
|
|
|
|
|
|
if (this.vm().stateManager._checkpointCount > (checkpointCount || 0)) { |
|
|
|
|
|
|
|
return this.vm().stateManager.commit(() => { |
|
|
|
|
|
|
|
cb() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
this.vm().stateManager.checkpoint(() => { |
|
|
|
|
|
|
|
this.vm().stateManager.commit(() => { |
|
|
|
|
|
|
|
cb() |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.currentblockGasLimit = function () { |
|
|
|
this.currentblockGasLimit = function () { |
|
|
|
return this.blockGasLimit |
|
|
|
return this.blockGasLimit |
|
|
|
} |
|
|
|
} |
|
|
|