aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-06-05 10:25:24 +0300
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2020-09-07 21:03:54 +0300
commite084d45562b94827b3a7873895882fcaae9f4d48 (patch)
tree3f34e388cd56e73f54e9c2646470e38762ce375f /src
parent8d2026796a6f7add0c2cda9806e759817d1eae6f (diff)
downloadbitcoin-e084d45562b94827b3a7873895882fcaae9f4d48.tar.xz
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.
Diffstat (limited to 'src')
-rw-r--r--src/net_processing.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index c23d1f6764..301b32aca7 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);