p2p: Remove SetCommonVersion() from VERACK handler

SetCommonVersion() is already called from the VERSION message handler.
There is no change in behavior on the P2P network.
pull/764/head
Hennadii Stepanov 5 years ago
parent 8d2026796a
commit e084d45562
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

@ -2523,8 +2523,6 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
if (msg_type == NetMsgType::VERACK) if (msg_type == NetMsgType::VERACK)
{ {
pfrom.SetCommonVersion(std::min(pfrom.nVersion.load(), PROTOCOL_VERSION));
if (!pfrom.IsInboundConn()) { if (!pfrom.IsInboundConn()) {
// Mark this node as currently connected, so we update its timestamp later. // Mark this node as currently connected, so we update its timestamp later.
LOCK(cs_main); LOCK(cs_main);

Loading…
Cancel
Save