diff --git a/lib/mempool/mempool.js b/lib/mempool/mempool.js index c66e87ae8..5162ec91a 100644 --- a/lib/mempool/mempool.js +++ b/lib/mempool/mempool.js @@ -1618,35 +1618,6 @@ Mempool.prototype.getSpentView = co(function* getSpentView(tx) { } }); -/** - * Get coin viewpoint (no lock). - * @method - * @param {TX} tx - * @returns {Promise} - Returns {@link CoinView}. - */ - -Mempool.prototype.getCoinView = co(function* getCoinView(tx) { - var view = yield this.chain.db.getCoinView(tx); - var items = view.toArray(); - var i, coins, entry; - - for (i = 0; i < items.length; i++) { - coins = items[i]; - - if (!coins.isEmpty()) - continue; - - entry = this.getEntry(coins.hash); - - if (!entry) - continue; - - view.addTX(entry.tx, -1); - } - - return view; -}); - /** * Get coin viewpoint (no lock). * @method