eth-block-tracker
Advanced tools
Comparing version 1.0.5 to 1.0.6
15
index.js
@@ -80,3 +80,2 @@ // const EthQuery = require('ethjs-query') | ||
try { | ||
const newBlock = await this._fetchBlockByNumber(nextNumber) | ||
@@ -96,13 +95,3 @@ if (newBlock) { | ||
} catch (err) { | ||
// hotfix for https://github.com/ethereumjs/testrpc/issues/290 | ||
if (err.message.includes('index out of range')) { | ||
// set tracking block as current block | ||
await this._setCurrentBlock(trackingBlock) | ||
// setup poll for next block | ||
this._pollForNextBlock() | ||
} else { | ||
console.error(err) | ||
} | ||
if (err) console.error(err) | ||
} | ||
@@ -157,2 +146,2 @@ } | ||
// ├─ transactionsRoot: 0xb090c32d840dec1e9752719f21bbae4a73e58333aecb89bc3b8ed559fb2712a3 | ||
// └─ uncles | ||
// └─ uncles |
{ | ||
"name": "eth-block-tracker", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "This module walks the Ethereum blockchain, keeping track of the latest block. It uses a web3 provider as a data source and will continuously poll for the next block.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13379
226
1