mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-10 14:08:40 +01:00
p2p: Add ReadAnchors()
This commit is contained in:
@@ -81,4 +81,12 @@ public:
|
||||
*/
|
||||
void DumpAnchors(const fs::path& anchors_db_path, const std::vector<CAddress>& anchors);
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
std::vector<CAddress> ReadAnchors(const fs::path& anchors_db_path);
|
||||
|
||||
#endif // BITCOIN_ADDRDB_H
|
||||
|
||||
Reference in New Issue
Block a user