diff --git a/lib/blockchain/chain.js b/lib/blockchain/chain.js index 54e4885a..75380728 100644 --- a/lib/blockchain/chain.js +++ b/lib/blockchain/chain.js @@ -1410,8 +1410,10 @@ Chain.prototype.finish = function finish(block, entry) { block.txs.length, time); - this.logger.debug('Coin Cache: size=%dmb, total=%d.', - util.mb(this.db.coinCache.size), this.db.coinCache.total); + if (this.db.coinCache.size > 0) { + this.logger.debug('Coin Cache: size=%dmb, total=%d.', + util.mb(this.db.coinCache.size), this.db.coinCache.total); + } }; /**