insight-api
Advanced tools
Comparing version 5.0.0-beta.16 to 5.0.0-beta.17
@@ -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 @@ |
{ | ||
"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 @@ }); |
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
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
161029
4924