peer: remove useless map call.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Christopher Jeffrey 2014-05-15 01:09:48 -05:00 committed by Fedor Indutny
parent 2cde8ad6e3
commit b2ee0891a1

View File

@ -365,9 +365,6 @@ Peer.prototype._handleInv = function handleInv(items) {
// Always request advertised TXs
var txs = items.filter(function(item) {
return item.type === 'tx';
}).map(function(item) {
if (item.type === 'tx')
return item;
});
// Emit new blocks to schedule them between multiple peers