mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
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.
This commit is contained in:
parent
8d2026796a
commit
e084d45562
1 changed files with 0 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue