Changeset View
Changeset View
Standalone View
Standalone View
src/addrdb.h
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | |||||
* | * | ||||
* Anchors are last known outgoing block-relay-only peers that are | * Anchors are last known outgoing block-relay-only peers that are | ||||
* tried to re-connect to on startup. | * tried to re-connect to on startup. | ||||
*/ | */ | ||||
void DumpAnchors(const CChainParams &chainParams, | void DumpAnchors(const CChainParams &chainParams, | ||||
const fs::path &anchors_db_path, | const fs::path &anchors_db_path, | ||||
const std::vector<CAddress> &anchors); | 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 CChainParams &chainParams, | |||||
const fs::path &anchors_db_path); | |||||
#endif // BITCOIN_ADDRDB_H | #endif // BITCOIN_ADDRDB_H |