Struct floresta_chain::pruned_utreexo::chainparams::DnsSeed
source · pub struct DnsSeed {
pub network: Network,
pub seed: &'static str,
pub filters: ServiceFlags,
}
Expand description
A dns seed is a authoritative DNS server that returns the IP addresses of nodes that are likely to be accepting incoming connections. This is our prefered way of finding new peers on the first startup, as peers returned by seeds are likely to be online and accepting connections. We may use this as a fallback if we don’t have any peers to connect in subsequent startups.
Some seeds allow filtering by service flags, so we may use this to find peers that are likely to be running Utreexo, for example.
Fields§
§network: Network
The network this peer supports (e.g, mainnet, testnet, etc)
seed: &'static str
The domain name of the seed
filters: ServiceFlags
Useful filters we can use to find relevant peers
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for DnsSeed
impl Send for DnsSeed
impl Sync for DnsSeed
impl Unpin for DnsSeed
impl UnwindSafe for DnsSeed
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more