pool fix.
This commit is contained in:
parent
68159daf46
commit
aa355feb25
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user