Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 481 Lines • ▼ Show 20 Lines | state->fPreferredDownload = | ||||
(!node->fInbound || node->HasPermission(PF_NOBAN)) && !node->fOneShot && | (!node->fInbound || node->HasPermission(PF_NOBAN)) && !node->fOneShot && | ||||
!node->fClient; | !node->fClient; | ||||
nPreferredDownload += state->fPreferredDownload; | nPreferredDownload += state->fPreferredDownload; | ||||
} | } | ||||
static void PushNodeVersion(const Config &config, CNode *pnode, | static void PushNodeVersion(const Config &config, CNode *pnode, | ||||
CConnman *connman, int64_t nTime) { | CConnman *connman, int64_t nTime) { | ||||
// Note that pnode->GetLocalServices() is a reflection of the local | |||||
// services we were offering when the CNode object was created for this | |||||
// peer. | |||||
ServiceFlags nLocalNodeServices = pnode->GetLocalServices(); | ServiceFlags nLocalNodeServices = pnode->GetLocalServices(); | ||||
uint64_t nonce = pnode->GetLocalNonce(); | uint64_t nonce = pnode->GetLocalNonce(); | ||||
int nNodeStartingHeight = pnode->GetMyStartingHeight(); | int nNodeStartingHeight = pnode->GetMyStartingHeight(); | ||||
NodeId nodeid = pnode->GetId(); | NodeId nodeid = pnode->GetId(); | ||||
CAddress addr = pnode->addr; | CAddress addr = pnode->addr; | ||||
CAddress addrYou = (addr.IsRoutable() && !IsProxy(addr) | CAddress addrYou = (addr.IsRoutable() && !IsProxy(addr) | ||||
? addr | ? addr | ||||
▲ Show 20 Lines • Show All 4,511 Lines • Show Last 20 Lines |