[#LoadAddrman]
= LoadAddrman
:mrdocs:

Loads the address manager (peers&period;dat), creating a fresh one if needed&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:util/Result.adoc[util::Result&lt;std::unique&lowbar;ptr&lt;AddrMan&gt;&gt;]
LoadAddrman(
    xref:NetGroupManager.adoc[NetGroupManager] const& netgroupman,
    xref:ArgsManager.adoc[ArgsManager] const& args);
----

== Description

Returns an error string on failure&period;

== Return Value

The loaded address manager, or an error string on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *netgroupman*
| The network group manager used to bucket addresses&period;
| *args*
| The active argument manager, used to locate the data directory&period;
|===


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