peer: txs event - only emit hashes to mimic blocks event.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
Christopher Jeffrey 2014-05-18 04:00:27 -05:00 committed by Fedor Indutny
parent 2ab9334b4b
commit 4894f6965f

View File

@ -351,7 +351,9 @@ Peer.prototype._handleInv = function handleInv(items) {
if (txs.length === 0)
return;
this.emit('txs', txs);
this.emit('txs', txs.map(function(tx) {
return tx.hash;
}));
this.getData(txs);
};