Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Allow emulateParent to be optional, without the bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmurdoch committed Jul 15, 2019
1 parent a2c3427 commit d528ea9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/blockchain_double.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ BlockchainDouble.prototype.createBlock = function(parent, emulateParent, callbac
parent = null;
emulateParent = false;
} else if (typeof emulateParent === "function") {
callback = parent;
parent = null;
callback = emulateParent;
emulateParent = false;
}

Expand Down

0 comments on commit d528ea9

Please sign in to comment.