mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
Move AdvertiseLocal debug output to net category
This commit is contained in:
parent
6e6ab2c323
commit
f13c1bae52
@ -4999,11 +4999,11 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
|
|||||||
CAddress addr = GetLocalAddress(&pfrom->addr);
|
CAddress addr = GetLocalAddress(&pfrom->addr);
|
||||||
if (addr.IsRoutable())
|
if (addr.IsRoutable())
|
||||||
{
|
{
|
||||||
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
|
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
|
||||||
pfrom->PushAddress(addr);
|
pfrom->PushAddress(addr);
|
||||||
} else if (IsPeerAddrLocalGood(pfrom)) {
|
} else if (IsPeerAddrLocalGood(pfrom)) {
|
||||||
addr.SetIP(pfrom->addrLocal);
|
addr.SetIP(pfrom->addrLocal);
|
||||||
LogPrintf("ProcessMessages: advertising address %s\n", addr.ToString());
|
LogPrint("net", "ProcessMessages: advertising address %s\n", addr.ToString());
|
||||||
pfrom->PushAddress(addr);
|
pfrom->PushAddress(addr);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -216,7 +216,7 @@ void AdvertiseLocal(CNode *pnode)
|
|||||||
}
|
}
|
||||||
if (addrLocal.IsRoutable())
|
if (addrLocal.IsRoutable())
|
||||||
{
|
{
|
||||||
LogPrintf("AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
|
LogPrint("net", "AdvertiseLocal: advertising address %s\n", addrLocal.ToString());
|
||||||
pnode->PushAddress(addrLocal);
|
pnode->PushAddress(addrLocal);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user