From e084d45562b94827b3a7873895882fcaae9f4d48 Mon Sep 17 00:00:00 2001 From: Hennadii Stepanov <32963518+hebasto@users.noreply.github.com> Date: Fri, 5 Jun 2020 10:25:24 +0300 Subject: 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. --- src/net_processing.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/net_processing.cpp') diff --git a/src/net_processing.cpp b/src/net_processing.cpp index c23d1f676..301b32aca 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -2523,8 +2523,6 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat if (msg_type == NetMsgType::VERACK) { - pfrom.SetCommonVersion(std::min(pfrom.nVersion.load(), PROTOCOL_VERSION)); - if (!pfrom.IsInboundConn()) { // Mark this node as currently connected, so we update its timestamp later. LOCK(cs_main); -- cgit v1.2.3