diff options
author | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-09-12 18:01:19 +0300 |
---|---|---|
committer | Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> | 2020-10-09 14:29:04 +0300 |
commit | c29272a157d09a8125788c1b860e89b63b4cb36c (patch) | |
tree | 378a03059381306e7e5ca2cbfafea1790ca9583c /src/addrdb.h | |
parent | 567008d2a0c95bd972f4031f31647c493d1bc2e8 (diff) |
p2p: Add ReadAnchors()
Diffstat (limited to 'src/addrdb.h')
-rw-r--r-- | src/addrdb.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/addrdb.h b/src/addrdb.h index 614a0c20e3..4ac0e3e1b5 100644 --- a/src/addrdb.h +++ b/src/addrdb.h @@ -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 |