Commit 40fc073d authored by Iuri Matias's avatar Iuri Matias

add comment explaining the the reason for checking the checkpointCount variable

parent 77a72647
......@@ -221,6 +221,7 @@ 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()
......
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