remove old getSeed code.

This commit is contained in:
Christopher Jeffrey 2016-05-19 00:44:06 -07:00
parent ae230cf294
commit 3e2d4aa717
No known key found for this signature in database
GPG Key ID: 8962AB9DE6666BBD

View File

@ -1810,12 +1810,6 @@ Pool.prototype.getSeed = function getSeed(priority) {
if (!this.peers.load)
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);
if (addr)
return addr;