Skip to content

Commit e084d45

Browse files
committed
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.
1 parent 8d20267 commit e084d45

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/net_processing.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2523,8 +2523,6 @@ void PeerManager::ProcessMessage(CNode& pfrom, const std::string& msg_type, CDat
25232523

25242524
if (msg_type == NetMsgType::VERACK)
25252525
{
2526-
pfrom.SetCommonVersion(std::min(pfrom.nVersion.load(), PROTOCOL_VERSION));
2527-
25282526
if (!pfrom.IsInboundConn()) {
25292527
// Mark this node as currently connected, so we update its timestamp later.
25302528
LOCK(cs_main);

0 commit comments

Comments
 (0)