[#GetLocalAddrForPeer] = GetLocalAddrForPeer :mrdocs: Returns a local address that we should advertise to this peer. == Synopsis Declared in `<net.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<CService> GetLocalAddrForPeer(xref:CNode.adoc[CNode]& node); ---- == Return Value the address to advertise, or std::nullopt if none is suitable. == Parameters [cols="1,4"] |=== | Name| Description | *node* | the peer we would advertise the address to. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#