chain: minor.

This commit is contained in:
Christopher Jeffrey 2016-12-04 03:16:13 -08:00
parent 11506ce246
commit c358b6b822
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -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);
}
};
/**