Expand description
Address manager is a module that keeps track of known peer addresses and associated metadata. This module is very important in keeping our node protected against targeted attacks, like eclipse attacks.
ModulesΒ§
- dns_
proxy - Simple implementation of a DNS-over-HTTPS (DoH) lookup routed through the SOCKS5 proxy
StructsΒ§
- Address
Man - A module that keeps track of known addresses and chooses addresses that our node can connect
- Disk
Local Address - Local
Address - How do we store peers locally
EnumsΒ§
- Address
- Address
State - A local state for how we see this peer. It helps us during peer selection, by keeping track of our past encounters with this node (if any), helping us to find live peers more easily, and avoid troublesome peers.
- Reachable
Networks - All the networks we might receive addresses for
ConstantsΒ§
- ASSUME_
STALE π - If we havenβt heard from a peer in this amount of time, we consider its info stale and add it to the NeverTried bucket
- MAX_
ADDRESSES π - How many addresses we keep in our address manager
- MIN_
ADDRESSES π - The minimum amount of addresses we need to have on the
AddressMan. - MIN_
ADDRESSES_ πCBF - The minimum amount of CBF-capable addresses we need to have on the
AddressMan. - MIN_
ADDRESSES_ πUTREEXO - The minimum amount of Utreexo-capable addresses we need to have on the
AddressMan. - RETRY_
TIME π - How long weβll wait before trying to connect to a peer that failed
- SUPPORTED_
NETWORKS - The
ReachableNetworksthis implementation currently supports.
Type AliasesΒ§
- Address
ToSend π - A type alias for a list of addresses to send to our peers