Open gtank opened 4 years ago
Typically, we'll only have seeders for two network upgrades active at any one time - the current network upgrade, and the next network upgrade. (Or the previous one, if we've just passed an activation.)
At network upgrade activation, we should switch the default seeder from current to next.
Unlike the Bitcoin DNS seeder the original
zcash-seeder
was based on, this seeder has the need and capacity to serve different subsets of the network based on what NU the client is on.This feature should be based on supported protocol version and supply subdomains that will seed only peers that are on the requested network epoch.
An example configuration might look like:
However, it should also be possible to automatically generate those subdomains with a map between name strings and protocol version ranges. In that case, each subdomain SHOULD share the same crawl process to the extent possible to avoid producing unnecessary network traffic.