AddLocal

AddLocal overloads

Synopses

Declared in <net.h>

Record a local address that we may advertise, scored by nScore.

bool
AddLocal(
    CNetAddr const& addr,
    int nScore = LOCAL_NONE,
    bool add_even_if_unreachable = false);
» more...

Record a local address (with port) that we may advertise, scored by nScore.

bool
AddLocal(
    CService const& addr,
    int nScore = LOCAL_NONE,
    bool add_even_if_unreachable = false);
» more...

Return Value

true if the address was newly recorded or its score was raised.

Parameters

NameDescription
addrthe local address to record.
nScorethe trust score to assign (see the LOCAL_* levels).
add_even_if_unreachablerecord the address even if it looks unreachable.