From 7ce5348cd9bad138367aa00af4267d474e8169fe Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Fri, 29 Jan 2016 14:45:08 -0800 Subject: [PATCH] debug messages. --- lib/bcoin/pool.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/bcoin/pool.js b/lib/bcoin/pool.js index 7b82783e..11c6cec8 100644 --- a/lib/bcoin/pool.js +++ b/lib/bcoin/pool.js @@ -816,7 +816,9 @@ Pool.prototype._createPeer = function _createPeer(backoff, priority) { peer.on('tx', function(tx) { if (self._response(tx)) - utils.debug('Received request TX: %s', tx.rhash); + utils.debug('Received requested TX: %s', tx.rhash); + else + utils.debug('Received unrequested TX: %s', tx.rhash); self.emit('tx', tx, peer);