peer: minor.

This commit is contained in:
Christopher Jeffrey 2016-08-22 22:11:23 -07:00
parent 154bc6fb4d
commit 3d4b0d9a61
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1141,11 +1141,6 @@ Peer.prototype._handleGetUTXOs = function _handleGetUTXOs(payload) {
var coin;
if (self.mempool && payload.mempool) {
if (self.mempool.isSpent(hash, index)) {
hits.push(0);
return next();
}
coin = self.mempool.getCoin(hash, index);
if (coin) {
@ -1153,6 +1148,11 @@ Peer.prototype._handleGetUTXOs = function _handleGetUTXOs(payload) {
coins.push(coin);
return next();
}
if (self.mempool.isSpent(hash, index)) {
hits.push(0);
return next();
}
}
self.chain.db.getCoin(hash, index, function(err, coin) {