pool fix.

This commit is contained in:
Christopher Jeffrey 2016-06-10 16:59:47 -07:00
parent 68159daf46
commit aa355feb25
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1621,16 +1621,15 @@ Pool.prototype.getUTXOs = function getUTXOs(utxos, callback) {
var i, peer;
if (this.peers.load && this.peers.load.version) {
if (this.peers.load.version.services & constants.services.BLOOM)
if (this.peers.load.version.services & constants.services.GETUXO)
peer = this.peers.load;
}
if (!peer) {
for (i = 0; i < this.peers.regular.length; i++) {
peer = this.peers.regular[i];
if (peer.version.services & constants.services.BLOOM)
if (peer.version.services & constants.services.GETUXO)
break;
}
if (i === this.peers.regular.length)
peer = null;