[#AddLocal-0ab]
= AddLocal
:mrdocs:

Record a local address that we may advertise, scored by nScore&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
AddLocal(
    xref:CNetAddr.adoc[CNetAddr] const& addr,
    int nScore = LOCAL&lowbar;NONE,
    bool add&lowbar;even&lowbar;if&lowbar;unreachable = false);
----

== Return Value

true if the address was newly recorded or its score was raised&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *addr*
| the local address to record&period;
| *nScore*
| the trust score to assign (see the LOCAL&lowbar;&ast; levels)&period;
| *add&lowbar;even&lowbar;if&lowbar;unreachable*
| record the address even if it looks unreachable&period;
|===


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