aboutsummaryrefslogtreecommitdiff
path: root/src/addrdb.h
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-12 17:59:09 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-10-09 14:28:58 +0300
commit567008d2a0c95bd972f4031f31647c493d1bc2e8 (patch)
tree8edcb1f8123c9bd70f736f15258be22316d148db /src/addrdb.h
parent12a1c3ad1a43634d2a98717e49e3f02c4acea2fe (diff)
downloadbitcoin-567008d2a0c95bd972f4031f31647c493d1bc2e8.tar.xz
p2p: Add DumpAnchors()
Diffstat (limited to 'src/addrdb.h')
-rw-r--r--src/addrdb.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/addrdb.h b/src/addrdb.h
index 8410c3776c..614a0c20e3 100644
--- a/src/addrdb.h
+++ b/src/addrdb.h
@@ -11,9 +11,9 @@
#include <serialize.h>
#include <string>
-#include <map>
+#include <vector>
-class CSubNet;
+class CAddress;
class CAddrMan;
class CDataStream;
@@ -73,4 +73,12 @@ public:
bool Read(banmap_t& banSet);
};
+/**
+ * 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.
+ */
+void DumpAnchors(const fs::path& anchors_db_path, const std::vector<CAddress>& anchors);
+
#endif // BITCOIN_ADDRDB_H