remove old getSeed code.
This commit is contained in:
parent
ae230cf294
commit
3e2d4aa717
@ -1810,12 +1810,6 @@ Pool.prototype.getSeed = function getSeed(priority) {
|
|||||||
if (!this.peers.load)
|
if (!this.peers.load)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// Need at least one block peer.
|
|
||||||
if (this.originalSeeds.length + this.seeds.length === 1) {
|
|
||||||
assert(this.originalSeeds[0]);
|
|
||||||
return this.originalSeeds[0];
|
|
||||||
}
|
|
||||||
|
|
||||||
addr = this._getRandom(this.originalSeeds, true);
|
addr = this._getRandom(this.originalSeeds, true);
|
||||||
if (addr)
|
if (addr)
|
||||||
return addr;
|
return addr;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user