Function get_chain_dns_seeds

Source
pub fn get_chain_dns_seeds(
    network: Network,
) -> Result<Vec<DnsSeed>, BlockchainError>
Expand description

This function returns the DNS seeds for the given network.

DNS seeds taken from Bitcoin Core at commit 382b692a503355df7347efd9c128aff465b5583e

Some dns seeds lets us filter the returned peers by advertised services. We are interested in peers with: UTREEXO, COMPACT_FILTERS, WITNESS and NETWORK. Not all seeds supports all bits, so from this list, we pick the ones they support, and ask for this.