Socket
Socket
Sign inDemoInstall

eth-block-tracker

Package Overview
Dependencies
Maintainers
2
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-block-tracker - npm Package Compare versions

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

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc