Skip to content

Commit

Permalink
Removed symlink.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Kleeschulte committed Aug 18, 2017
1 parent 1a5e25d commit 5785d46
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,4 @@ regtest/data/node3/regtest
bitcore-node.json*
*.bak
*.orig
lib/services/insight-api
2 changes: 1 addition & 1 deletion lib/services/header/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,7 @@ HeaderService.prototype._onHeadersSave = function(err) {
});
}

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

self.emit('headers');
});
Expand Down
1 change: 0 additions & 1 deletion lib/services/insight-api

This file was deleted.

7 changes: 5 additions & 2 deletions test/regtest/reorg.js
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ describe('Reorg', function() {
shutdownBitcore(done);
});

it('should reorg correctly', function(done) {
it('should reorg correctly when already synced', function(done) {

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

console.log('From Test: reorging to block: ' + reorgBlock.rhash());

// send the reorg block
rawBlocks.push(rawReorgBlocks);
var blockHash = reorgBlock.rhash();
var inv = p2p.Inventory.forBlock(blockHash);

var msg = messages.Inventory([inv]);
tcpSocket.write(msg.toBuffer());

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


});

});

0 comments on commit 5785d46

Please sign in to comment.