show pending jobs.

This commit is contained in:
Christopher Jeffrey 2016-02-19 19:53:24 -08:00
parent a9ec49f954
commit 9eb90dd821

View File

@ -686,7 +686,7 @@ Pool.prototype._handleBlock = function _handleBlock(block, peer, callback) {
if (self.chain.height % 20 === 0) { if (self.chain.height % 20 === 0) {
utils.debug( utils.debug(
'Status: tip=%s ts=%s height=%d blocks=%d orphans=%d active=%d' 'Status: tip=%s ts=%s height=%d blocks=%d orphans=%d active=%d'
+ ' queue=%d target=%s peers=%d pending=%d highest=%d', + ' queue=%d target=%s peers=%d pending=%d highest=%d jobs=%d',
block.rhash, block.rhash,
new Date(block.ts * 1000).toISOString().slice(0, -5) + 'Z', new Date(block.ts * 1000).toISOString().slice(0, -5) + 'Z',
self.chain.height, self.chain.height,
@ -697,7 +697,8 @@ Pool.prototype._handleBlock = function _handleBlock(block, peer, callback) {
self.chain.getCurrentTarget(), self.chain.getCurrentTarget(),
self.peers.all.length, self.peers.all.length,
self.chain.pending.length, self.chain.pending.length,
self.chain.bestHeight); self.chain.bestHeight,
self.chain.jobs.length);
} }
return callback(null, true); return callback(null, true);