remove unncessary logs
This commit is contained in:
parent
36137c6bea
commit
5129fb4d8f
4
index.js
4
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) {
|
||||
|
||||
@ -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) {
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user