![]() |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the source code of this file.
Classes | |
class | CBanEntry |
class | CAddrDB |
Access to the (IP) address database (peers.dat) More... | |
class | CBanDB |
Access to the banlist database (banlist.dat) More... | |
Functions | |
void | DumpAnchors (const fs::path &anchors_db_path, const std::vector< CAddress > &anchors) |
Dump the anchor IP address database (anchors.dat) More... | |
std::vector< CAddress > | ReadAnchors (const fs::path &anchors_db_path) |
Read the anchor IP address database (anchors.dat) More... | |
void DumpAnchors | ( | const fs::path & | anchors_db_path, |
const std::vector< CAddress > & | anchors | ||
) |
Dump the anchor IP address database (anchors.dat)
Anchors are last known outgoing block-relay-only peers that are tried to re-connect to on startup.
Definition at line 161 of file addrdb.cpp.
std::vector<CAddress> ReadAnchors | ( | const fs::path & | anchors_db_path | ) |
Read the anchor IP address database (anchors.dat)
Deleting anchors.dat is intentional as it avoids renewed peering to anchors after an unclean shutdown and thus potential exploitation of the anchor peer policy.
Definition at line 167 of file addrdb.cpp.