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

Commit f82ac07

Browse files
authored
Update ethereumjs-block to v2.2.1 (#130)
* Update ethereumjs-block to v2.2.1 * Fix linting error
1 parent 885d251 commit f82ac07

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"dependencies": {
4545
"async": "^2.6.1",
4646
"ethashjs": "~0.0.7",
47-
"ethereumjs-block": "~2.2.0",
47+
"ethereumjs-block": "~2.2.1",
4848
"ethereumjs-common": "^1.1.0",
4949
"ethereumjs-util": "~6.1.0",
5050
"flow-stoplight": "^1.0.0",

src/index.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,11 @@ export default class Blockchain implements BlockchainInterface {
10441044
self._hashToNumber(blockHash, (err?: any, number?: any) => {
10451045
if (err) return cb(err)
10461046
blockNumber = number.addn(1)
1047-
async.whilst(() => blockNumber, run, err => (err ? cb(err) : self._saveHeads(cb)))
1047+
async.whilst(
1048+
() => blockNumber,
1049+
run,
1050+
err => (err ? cb(err) : self._saveHeads(cb)),
1051+
)
10481052
})
10491053

10501054
function run(cb2: any) {

0 commit comments

Comments
 (0)