diff --git a/lib/net/pool.js b/lib/net/pool.js index 7ef82094..6010efb3 100644 --- a/lib/net/pool.js +++ b/lib/net/pool.js @@ -1596,7 +1596,7 @@ Pool.prototype.hasBlock = co(function* hasBlock(hash) { * @returns {Promise} */ -Pool.prototype.getTX = function getTX(peer, hash) { +Pool.prototype.getTX = co(function* getTX(peer, hash) { var self = this; var item; @@ -1627,7 +1627,7 @@ Pool.prototype.getTX = function getTX(peer, hash) { peer.queueTX.push(item.start()); return false; -}; +}); /** * Test whether the mempool has or has seen an item.