Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 3,791 Lines • ▼ Show 20 Lines | if (msg_type == NetMsgType::VERACK) { | ||||
bool fAnnounceUsingCMPCTBLOCK = false; | bool fAnnounceUsingCMPCTBLOCK = false; | ||||
uint64_t nCMPCTBLOCKVersion = 1; | uint64_t nCMPCTBLOCKVersion = 1; | ||||
m_connman.PushMessage(&pfrom, | m_connman.PushMessage(&pfrom, | ||||
msgMaker.Make(NetMsgType::SENDCMPCT, | msgMaker.Make(NetMsgType::SENDCMPCT, | ||||
fAnnounceUsingCMPCTBLOCK, | fAnnounceUsingCMPCTBLOCK, | ||||
nCMPCTBLOCKVersion)); | nCMPCTBLOCKVersion)); | ||||
} | } | ||||
if ((pfrom.nServices & NODE_AVALANCHE) && g_avalanche && | if (g_avalanche && isAvalancheEnabled(gArgs)) { | ||||
isAvalancheEnabled(gArgs)) { | |||||
if (g_avalanche->sendHello(&pfrom)) { | if (g_avalanche->sendHello(&pfrom)) { | ||||
LogPrint(BCLog::AVALANCHE, "Send avahello to peer %d\n", | LogPrint(BCLog::AVALANCHE, "Send avahello to peer %d\n", | ||||
pfrom.GetId()); | pfrom.GetId()); | ||||
auto localProof = g_avalanche->getLocalProof(); | auto localProof = g_avalanche->getLocalProof(); | ||||
// If we sent a hello message, we should have a proof | // If we sent a hello message, we should have a proof | ||||
assert(localProof); | assert(localProof); | ||||
▲ Show 20 Lines • Show All 3,184 Lines • Show Last 20 Lines |