aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2017-05-18 16:57:53 -0400
committerAlex Morcos <morcos@chaincode.com>2017-05-18 16:57:53 -0400
commit307013469f9a3b8f13d3eb9dbeea419a55148493 (patch)
tree36bc50d9194490674cadba89cf92673a9fb60faf
parent962cd3f0587e87de1e38c1777151dca282f3dd84 (diff)
downloadbitcoin-307013469f9a3b8f13d3eb9dbeea419a55148493.tar.xz
Populate services in GetLocalAddress
Previously if we didn't have any local addresses, GetLocalAddress would return 0.0.0.0 and then we'd swap in a peer's notion of our address in AdvertiseLocal, but then nServices would never get set.
-rw-r--r--src/net.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.cpp b/src/net.cpp
index ded6f1099a..198d8f5fff 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -148,7 +148,7 @@ static std::vector<CAddress> convertSeed6(const std::vector<SeedSpec6> &vSeedsIn
// one by discovery.
CAddress GetLocalAddress(const CNetAddr *paddrPeer, ServiceFlags nLocalServices)
{
- CAddress ret(CService(CNetAddr(),GetListenPort()), NODE_NONE);
+ CAddress ret(CService(CNetAddr(),GetListenPort()), nLocalServices);
CService addr;
if (GetLocal(addr, paddrPeer))
{