mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
[net] Change AdvertiseLocal to GetLocalAddrForPeer
Gossiping addresses to peers is the responsibility of net processing. Change AdvertiseLocal() in net to just return an (optional) address for net processing to advertise. Update function name to reflect new responsibility.
This commit is contained in:
@@ -197,7 +197,8 @@ enum
|
||||
};
|
||||
|
||||
bool IsPeerAddrLocalGood(CNode *pnode);
|
||||
void AdvertiseLocal(CNode *pnode);
|
||||
/** Returns a local address that we should advertise to this peer */
|
||||
Optional<CAddress> GetLocalAddrForPeer(CNode *pnode);
|
||||
|
||||
/**
|
||||
* Mark a network as reachable or unreachable (no automatic connects to it)
|
||||
|
||||
Reference in New Issue
Block a user