peer: minor.
This commit is contained in:
parent
154bc6fb4d
commit
3d4b0d9a61
@ -1141,11 +1141,6 @@ Peer.prototype._handleGetUTXOs = function _handleGetUTXOs(payload) {
|
|||||||
var coin;
|
var coin;
|
||||||
|
|
||||||
if (self.mempool && payload.mempool) {
|
if (self.mempool && payload.mempool) {
|
||||||
if (self.mempool.isSpent(hash, index)) {
|
|
||||||
hits.push(0);
|
|
||||||
return next();
|
|
||||||
}
|
|
||||||
|
|
||||||
coin = self.mempool.getCoin(hash, index);
|
coin = self.mempool.getCoin(hash, index);
|
||||||
|
|
||||||
if (coin) {
|
if (coin) {
|
||||||
@ -1153,6 +1148,11 @@ Peer.prototype._handleGetUTXOs = function _handleGetUTXOs(payload) {
|
|||||||
coins.push(coin);
|
coins.push(coin);
|
||||||
return next();
|
return next();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (self.mempool.isSpent(hash, index)) {
|
||||||
|
hits.push(0);
|
||||||
|
return next();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
self.chain.db.getCoin(hash, index, function(err, coin) {
|
self.chain.db.getCoin(hash, index, function(err, coin) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user