Removed symlink.
This commit is contained in:
parent
1a5e25d4c1
commit
5785d46258
1
.gitignore
vendored
1
.gitignore
vendored
@ -30,3 +30,4 @@ regtest/data/node3/regtest
|
||||
bitcore-node.json*
|
||||
*.bak
|
||||
*.orig
|
||||
lib/services/insight-api
|
||||
|
||||
@ -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');
|
||||
});
|
||||
|
||||
@ -1 +0,0 @@
|
||||
/Users/chrisk/source/insight-api
|
||||
@ -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)
|
||||
@ -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) {
|
||||
@ -269,5 +271,6 @@ describe('Reorg', function() {
|
||||
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user