Skip to content

Commit

Permalink
merge bitcoin#20146: Send post-verack handshake messages at most once
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Mar 25, 2024
1 parent 1af51b2 commit 2d838a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/net_processing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3119,8 +3119,9 @@ void PeerManagerImpl::ProcessMessage(

bool fBlocksOnly = pfrom.IsBlockRelayOnly();

if (msg_type == NetMsgType::VERACK)
{
if (msg_type == NetMsgType::VERACK) {
if (pfrom.fSuccessfullyConnected) return;

if (!pfrom.IsInboundConn()) {
LogPrintf("New outbound peer connected: version: %d, blocks=%d, peer=%d%s (%s)\n",
pfrom.nVersion.load(), pfrom.nStartingHeight,
Expand Down

0 comments on commit 2d838a6

Please sign in to comment.