improve logs

This commit is contained in:
Manuel Araoz 2015-04-27 11:57:01 -03:00
parent 1d67ce4310
commit e99871fce9
2 changed files with 1 additions and 3 deletions

View File

@ -155,9 +155,7 @@ BitcoreNode.prototype.start = function() {
var self = this;
var genesis = bitcore.Block.fromBuffer(genesisBlocks[bitcore.Networks.defaultNetwork.name]);
console.log('getting blockchain');
this.blockService.getBlockchain().then(function(blockchain) {
console.log('got blockchain', !!blockchain);
if (!blockchain) {
self.blockchain = new BlockChain();
self.bus.process(genesis);

View File

@ -475,7 +475,7 @@ BlockService.prototype.getBlockchain = function() {
return self._getLatestHash()
.then(function(tip) {
if (!tip) {
console.log('No tip found');
console.log('No tip found, syncing blockchain from genesis block');
return null;
}
console.log('Tip is', tip);