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

Commit

Permalink
Update ethereumjs-block to v2.2.1 (#130)
Browse files Browse the repository at this point in the history
* Update ethereumjs-block to v2.2.1

* Fix linting error
  • Loading branch information
s1na authored Nov 15, 2019
1 parent 885d251 commit f82ac07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"async": "^2.6.1",
"ethashjs": "~0.0.7",
"ethereumjs-block": "~2.2.0",
"ethereumjs-block": "~2.2.1",
"ethereumjs-common": "^1.1.0",
"ethereumjs-util": "~6.1.0",
"flow-stoplight": "^1.0.0",
Expand Down
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,11 @@ export default class Blockchain implements BlockchainInterface {
self._hashToNumber(blockHash, (err?: any, number?: any) => {
if (err) return cb(err)
blockNumber = number.addn(1)
async.whilst(() => blockNumber, run, err => (err ? cb(err) : self._saveHeads(cb)))
async.whilst(
() => blockNumber,
run,
err => (err ? cb(err) : self._saveHeads(cb)),
)
})

function run(cb2: any) {
Expand Down

0 comments on commit f82ac07

Please sign in to comment.