Bootstrap peers should be used in an intial DHT self query to find peers that are KAD-close to us.
We do not need to rediscover the same peers over and over again, instead we should just discover them once, use them to query for peers near our PeerId then we can disconnect from them like any other peer
Instead of "discovering" the same peers every few seconds, only discover them once
Tag the peers in the peer store with an expiring value to prevent any potential connection being culled before we've used the bootstrap nodes to query for peers close to us
BREAKING CHANGE: the interval option has been renamed timeout and peers are now only discovered once
Bootstrap peers should be used in an intial DHT self query to find peers that are KAD-close to us.
We do not need to rediscover the same peers over and over again, instead we should just discover them once, use them to query for peers near our PeerId then we can disconnect from them like any other peer
BREAKING CHANGE: the
interval
option has been renamedtimeout
and peers are now only discovered once