|
|
@ -77,6 +77,7 @@ const static std::string NET_MESSAGE_COMMAND_OTHER = "*other*"; |
|
|
|
bool fDiscover = true; |
|
|
|
bool fDiscover = true; |
|
|
|
bool fListen = true; |
|
|
|
bool fListen = true; |
|
|
|
uint64_t nLocalServices = NODE_NETWORK; |
|
|
|
uint64_t nLocalServices = NODE_NETWORK; |
|
|
|
|
|
|
|
bool fRelayTxes = true; |
|
|
|
CCriticalSection cs_mapLocalHost; |
|
|
|
CCriticalSection cs_mapLocalHost; |
|
|
|
map<CNetAddr, LocalServiceInfo> mapLocalHost; |
|
|
|
map<CNetAddr, LocalServiceInfo> mapLocalHost; |
|
|
|
static bool vfLimited[NET_MAX] = {}; |
|
|
|
static bool vfLimited[NET_MAX] = {}; |
|
|
@ -454,7 +455,7 @@ void CNode::PushVersion() |
|
|
|
else |
|
|
|
else |
|
|
|
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id); |
|
|
|
LogPrint("net", "send version message: version %d, blocks=%d, us=%s, peer=%d\n", PROTOCOL_VERSION, nBestHeight, addrMe.ToString(), id); |
|
|
|
PushMessage(NetMsgType::VERSION, PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe, |
|
|
|
PushMessage(NetMsgType::VERSION, PROTOCOL_VERSION, nLocalServices, nTime, addrYou, addrMe, |
|
|
|
nLocalHostNonce, strSubVersion, nBestHeight, !GetBoolArg("-blocksonly", DEFAULT_BLOCKSONLY)); |
|
|
|
nLocalHostNonce, strSubVersion, nBestHeight, fRelayTxes); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|