[#ReadAnchors]
= ReadAnchors
:mrdocs:

Read the anchor IP address database (anchors&period;dat)

== Synopsis

Declared in `&lt;addrdb&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;CAddress&gt;
ReadAnchors(xref:fs/path.adoc[fs::path] const& anchors&lowbar;db&lowbar;path);
----

== Description

Deleting anchors&period;dat is intentional as it avoids renewed peering to anchors after an unclean shutdown and thus potential exploitation of the anchor peer policy&period;

== Return Value

The anchor addresses loaded from the file&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *anchors&lowbar;db&lowbar;path*
| Path to the anchors&period;dat file to read&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
