diff --git a/lib/bcoin/chain.js b/lib/bcoin/chain.js index 953d903a..ce509a8e 100644 --- a/lib/bcoin/chain.js +++ b/lib/bcoin/chain.js @@ -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);