increment total block count on alternate chains.
This commit is contained in:
parent
c572e61bbb
commit
7301cf044e
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user