peer: remove useless map call.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
2cde8ad6e3
commit
b2ee0891a1
@ -365,9 +365,6 @@ Peer.prototype._handleInv = function handleInv(items) {
|
|||||||
// Always request advertised TXs
|
// Always request advertised TXs
|
||||||
var txs = items.filter(function(item) {
|
var txs = items.filter(function(item) {
|
||||||
return item.type === 'tx';
|
return item.type === 'tx';
|
||||||
}).map(function(item) {
|
|
||||||
if (item.type === 'tx')
|
|
||||||
return item;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Emit new blocks to schedule them between multiple peers
|
// Emit new blocks to schedule them between multiple peers
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user