Changeset View
Changeset View
Standalone View
Standalone View
src/net_processing.cpp
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | if (fLogIPs) { | ||||
PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString(), | PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString(), | ||||
addrYou.ToString(), nodeid); | addrYou.ToString(), nodeid); | ||||
} else { | } else { | ||||
LogPrint( | LogPrint( | ||||
BCLog::NET, | BCLog::NET, | ||||
"send version message: version %d, blocks=%d, us=%s, peer=%d\n", | "send version message: version %d, blocks=%d, us=%s, peer=%d\n", | ||||
PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString(), nodeid); | PROTOCOL_VERSION, nNodeStartingHeight, addrMe.ToString(), nodeid); | ||||
} | } | ||||
LogPrint(BCLog::NET, "Cleared nodestate for peer=%d\n", nodeid); | |||||
} | } | ||||
// Returns a bool indicating whether we requested this block. | // Returns a bool indicating whether we requested this block. | ||||
// Also used if a block was /not/ received and timed out or started with another | // Also used if a block was /not/ received and timed out or started with another | ||||
// peer. | // peer. | ||||
static bool MarkBlockAsReceived(const uint256 &hash) | static bool MarkBlockAsReceived(const uint256 &hash) | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | EXCLUSIVE_LOCKS_REQUIRED(cs_main) { | ||||
std::map<uint256, | std::map<uint256, | ||||
▲ Show 20 Lines • Show All 4,007 Lines • Show Last 20 Lines |