peer: txs event - only emit hashes to mimic blocks event.
Signed-off-by: Fedor Indutny <fedor@indutny.com>
This commit is contained in:
parent
2ab9334b4b
commit
4894f6965f
@ -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);
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user