Skip to content
This repository was archived by the owner on Apr 6, 2020. It is now read-only.

Commit 7c6925a

Browse files
committed
Callbackify getHeads in _init
1 parent b501d9c commit 7c6925a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ module.exports = class Blockchain {
8686

8787
async.waterfall([
8888
(cb) => self._numberToHash(new BN(0), cb),
89-
getHeads
89+
util.callbackify(getHeads.bind(this))
9090
], (err) => {
9191
if (err) {
9292
// if genesis block doesn't exist, create one

0 commit comments

Comments
 (0)