diff --git a/remix-lib/src/execution/execution-context.js b/remix-lib/src/execution/execution-context.js index e6ff2138ad..ce6beeb89d 100644 --- a/remix-lib/src/execution/execution-context.js +++ b/remix-lib/src/execution/execution-context.js @@ -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 () { return this.blockGasLimit } diff --git a/remix-simulator/src/genesis.js b/remix-simulator/src/genesis.js index 295cb935f4..2d4d7e74ee 100644 --- a/remix-simulator/src/genesis.js +++ b/remix-simulator/src/genesis.js @@ -17,10 +17,8 @@ function generateBlock () { uncleHeaders: [] }) - executionContext.checkpointAndCommit(() => { - executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }, function () { - executionContext.addBlock(block) - }) + executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }, function () { + executionContext.addBlock(block) }) }