increment total block count on alternate chains.

This commit is contained in:
Christopher Jeffrey 2016-04-20 03:42:49 -07:00
parent c572e61bbb
commit 7301cf044e
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1540,6 +1540,10 @@ Chain.prototype.add = function add(block, callback, force) {
if (err)
return callback(err);
// Keep track of the number of blocks we
// added and the number of orphans resolved.
total++;
// Emit our block (and potentially resolved
// orphan) only if it is on the main chain.
self.emit('competitor', block, entry);