Socket
Socket
Sign inDemoInstall

insight-api

Package Overview
Dependencies
Maintainers
4
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insight-api - npm Package Compare versions

Comparing version 5.0.0-beta.16 to 5.0.0-beta.17

11

lib/blocks.js

@@ -154,3 +154,3 @@ 'use strict';

reward: this.getBlockReward(block.txs[0]),
isMainChain: block.isMainChain,
isMainChain: true,
poolInfo: this.getPoolInfo(block.txs[0])

@@ -215,2 +215,6 @@ };

// if we don't we a block header back, this is highly unusual,
// but possible if there was a very recent reorg and the header
// was removed but the block was not yet removed from the index.
// It is best to not return a result.
self._header.getBlockHeader(hash, function(err, header) {

@@ -221,2 +225,7 @@

}
if (!header) {
return next();
}
var height = header.height;

@@ -223,0 +232,0 @@

2

package.json
{
"name": "insight-api",
"description": "A Bitcoin blockchain REST and web socket API service for Bitcore Node.",
"version": "5.0.0-beta.16",
"version": "5.0.0-beta.17",
"repository": "git://github.com/bitpay/insight-api.git",

@@ -6,0 +6,0 @@ "bugs": {

@@ -769,2 +769,8 @@ 'use strict';

fakeServer.sendBlock(reorgBlock);
next();
},
function(next) {
setTimeout(next, 2000);
},
function(next) {
blocksGenerated = 7;

@@ -777,2 +783,3 @@ waitForBlocksGenerated(next);

}
console.log('calling back from perform test 3');
callback();

@@ -1013,3 +1020,3 @@ });

describe('Reorg case 3: block service not sync\'ed, reorg common ancestor height less than ' +
'current block service tip height (reorg while sync, not affected)', function() {
'current block service tip height (reorg while sync, affected)', function() {

@@ -1068,3 +1075,3 @@ var fakeServer;

});
}, 2000);
}, 4000);
});

@@ -1071,0 +1078,0 @@ });

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