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);
|
console.log('Error: ', err);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
process.on('SIGINT', function() {
|
|
||||||
node.stop();
|
|
||||||
process.exit();
|
|
||||||
});
|
|
||||||
var http = new BitcoreHTTP(node, httpConfig);
|
var http = new BitcoreHTTP(node, httpConfig);
|
||||||
http.start()
|
http.start()
|
||||||
.catch(function(err) {
|
.catch(function(err) {
|
||||||
|
|||||||
@ -79,8 +79,6 @@ BitcoreNode.prototype.initialize = function() {
|
|||||||
var prevHeight = 0;
|
var prevHeight = 0;
|
||||||
var statTimer = 5 * 1000;
|
var statTimer = 5 * 1000;
|
||||||
this.interval = setInterval(function() {
|
this.interval = setInterval(function() {
|
||||||
console.log('MB used:', process.memoryUsage().heapTotal / 1024 / 1024,
|
|
||||||
100 * self.getSyncProgress() + '% synced');
|
|
||||||
if (!self.blockchain) {
|
if (!self.blockchain) {
|
||||||
// not ready yet
|
// not ready yet
|
||||||
console.log('No blockchain yet');
|
console.log('No blockchain yet');
|
||||||
@ -94,7 +92,8 @@ BitcoreNode.prototype.initialize = function() {
|
|||||||
}
|
}
|
||||||
var delta = block.height - prevHeight;
|
var delta = block.height - prevHeight;
|
||||||
prevHeight = block.height;
|
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);
|
}, statTimer);
|
||||||
|
|
||||||
this.bus.register(bitcore.Block, function(block) {
|
this.bus.register(bitcore.Block, function(block) {
|
||||||
|
|||||||
@ -486,7 +486,6 @@ BlockService.prototype.getBlockchain = function() {
|
|||||||
var fetchHeader = function(blockHash) {
|
var fetchHeader = function(blockHash) {
|
||||||
if (blockHash === BlockChain.NULL) {
|
if (blockHash === BlockChain.NULL) {
|
||||||
console.log('All headers fetched, total =', headers.length);
|
console.log('All headers fetched, total =', headers.length);
|
||||||
console.log(process.memoryUsage().heapTotal / 1024 / 1024, 'mb used');
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var headerKey = Index.getBlockHeader(blockHash);
|
var headerKey = Index.getBlockHeader(blockHash);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user