diff --git a/lib/bcoin/peer.js b/lib/bcoin/peer.js index 2472920a..179a3338 100644 --- a/lib/bcoin/peer.js +++ b/lib/bcoin/peer.js @@ -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); };