Skip to content

Commit 5785d46

Browse files
author
Chris Kleeschulte
committed
Removed symlink.
1 parent 1a5e25d commit 5785d46

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ regtest/data/node3/regtest
3030
bitcore-node.json*
3131
*.bak
3232
*.orig
33+
lib/services/insight-api

lib/services/header/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,7 @@ HeaderService.prototype._onHeadersSave = function(err) {
402402
});
403403
}
404404

405-
log.info('Header Service: emitting headers to block service.');
405+
log.debug('Header Service: emitting headers to block service.');
406406

407407
self.emit('headers');
408408
});

lib/services/insight-api

Lines changed: 0 additions & 1 deletion
This file was deleted.

test/regtest/reorg.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ describe('Reorg', function() {
207207
shutdownBitcore(done);
208208
});
209209

210-
it('should reorg correctly', function(done) {
210+
it('should reorg correctly when already synced', function(done) {
211211

212212
// at this point we have a fully synced chain at height 7....
213213
// we now want to send a new block number 7 whose prev hash is block 6 (it should be block 7)
@@ -216,13 +216,15 @@ describe('Reorg', function() {
216216
setTimeout(function() {
217217

218218
console.log('From Test: reorging to block: ' + reorgBlock.rhash());
219+
220+
// send the reorg block
219221
rawBlocks.push(rawReorgBlocks);
220222
var blockHash = reorgBlock.rhash();
221223
var inv = p2p.Inventory.forBlock(blockHash);
222-
223224
var msg = messages.Inventory([inv]);
224225
tcpSocket.write(msg.toBuffer());
225226

227+
// wait 2 secs until the reorg happens, if it takes any longer the test ought to fail anyway
226228
setTimeout(function() {
227229
var error;
228230
var request = http.request('http://localhost:53001/api/block/' + reorgBlock.rhash(), function(res) {
@@ -269,5 +271,6 @@ describe('Reorg', function() {
269271

270272

271273
});
274+
272275
});
273276

0 commit comments

Comments
 (0)