diff --git a/index.js b/index.js index ff345e21..13f51acb 100644 --- a/index.js +++ b/index.js @@ -22,10 +22,6 @@ if (require.main === module) { console.log('Error: ', err); } }); - process.on('SIGINT', function() { - node.stop(); - process.exit(); - }); var http = new BitcoreHTTP(node, httpConfig); http.start() .catch(function(err) { diff --git a/lib/node.js b/lib/node.js index 4c6b470f..85e689fb 100644 --- a/lib/node.js +++ b/lib/node.js @@ -79,8 +79,6 @@ BitcoreNode.prototype.initialize = function() { var prevHeight = 0; var statTimer = 5 * 1000; this.interval = setInterval(function() { - console.log('MB used:', process.memoryUsage().heapTotal / 1024 / 1024, - 100 * self.getSyncProgress() + '% synced'); if (!self.blockchain) { // not ready yet console.log('No blockchain yet'); @@ -94,7 +92,8 @@ BitcoreNode.prototype.initialize = function() { } var delta = block.height - prevHeight; prevHeight = block.height; - console.log(block.id, block.height, 'vel', delta * 1000 / statTimer, 'b/s'); + console.log(block.id, block.height, 'vel', delta * 1000 / statTimer, 'b/s', + 100 * self.getSyncProgress() + '% synced'); }, statTimer); this.bus.register(bitcore.Block, function(block) { diff --git a/lib/services/block.js b/lib/services/block.js index e828f8d7..442870d7 100644 --- a/lib/services/block.js +++ b/lib/services/block.js @@ -486,7 +486,6 @@ BlockService.prototype.getBlockchain = function() { var fetchHeader = function(blockHash) { if (blockHash === BlockChain.NULL) { console.log('All headers fetched, total =', headers.length); - console.log(process.memoryUsage().heapTotal / 1024 / 1024, 'mb used'); return; } var headerKey = Index.getBlockHeader(blockHash);