diff --git a/lib/node/spvnode.js b/lib/node/spvnode.js index 3c3717fe..b12cdc21 100644 --- a/lib/node/spvnode.js +++ b/lib/node/spvnode.js @@ -147,7 +147,7 @@ SPVNode.prototype._init = function _init() { }); this.chain.on('connect', function(entry, block) { - self.walletdb.addBlock(entry, block.txs || []).catch(onError); + self.walletdb.addBlock(entry, block.txs).catch(onError); }); this.chain.on('disconnect', function(entry, block) { @@ -204,8 +204,6 @@ SPVNode.prototype._close = co(function* close() { SPVNode.prototype.watchData = function watchData(chunks) { var i; - this.logger.info('Adding %d addresses to filter.', chunks.length); - for (i = 0; i < chunks.length; i++) this.pool.watch(chunks[i], 'hex');