potentially clean up misbehaving peers.
This commit is contained in:
parent
009f4f9f72
commit
ddbb7894fa
@ -1631,6 +1631,15 @@ Pool.prototype.usableSeed = function usableSeed(priority, connecting) {
|
|||||||
Pool.prototype.setSeeds = function setSeeds(seeds) {
|
Pool.prototype.setSeeds = function setSeeds(seeds) {
|
||||||
this.seeds = [];
|
this.seeds = [];
|
||||||
this.hosts = {};
|
this.hosts = {};
|
||||||
|
|
||||||
|
// Remove all seeds from misbehaving aside
|
||||||
|
// from original seeds that may be in it.
|
||||||
|
// this.peers.misbehaving = this.originalSeeds.reduce(function(out, addr) {
|
||||||
|
// if (this.peers.misbehaving[addr.host])
|
||||||
|
// out[addr.host] = this.peers.misbehaving[addr.host];
|
||||||
|
// return out;
|
||||||
|
// }, {}, this);
|
||||||
|
|
||||||
seeds.forEach(function(seed) {
|
seeds.forEach(function(seed) {
|
||||||
this.addSeed(seed);
|
this.addSeed(seed);
|
||||||
}, this);
|
}, this);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user