Skip to content

Commit

Permalink
mempool: drop old getCoinView.
Browse files Browse the repository at this point in the history
  • Loading branch information
chjj committed Mar 1, 2017
1 parent 3988d27 commit 38cfdbf
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions lib/mempool/mempool.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 38cfdbf

Please sign in to comment.