Commit b7c08cc2 authored by yann300's avatar yann300

remove unused checkpointAndCommit

parent 5861e612
...@@ -238,20 +238,6 @@ function ExecutionContext () { ...@@ -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
} }
......
...@@ -17,10 +17,8 @@ function generateBlock () { ...@@ -17,10 +17,8 @@ function generateBlock () {
uncleHeaders: [] uncleHeaders: []
}) })
executionContext.checkpointAndCommit(() => { executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }, function () {
executionContext.vm().runBlock({ block: block, generate: true, skipBlockValidation: true, skipBalance: false }, function () { executionContext.addBlock(block)
executionContext.addBlock(block)
})
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment