Skip to content

Commit 6113b54

Browse files
MarcoFalkefanquake
authored andcommitted
net: Send post-verack handshake messages at most once
Github-Pull: #20146 Rebased-From: fa1f6f2
1 parent bdf15d0 commit 6113b54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/net_processing.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2119,6 +2119,8 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
21192119

21202120
if (msg_type == NetMsgType::VERACK)
21212121
{
2122+
if (pfrom->fSuccessfullyConnected) return true;
2123+
21222124
pfrom->SetRecvVersion(std::min(pfrom->nVersion.load(), PROTOCOL_VERSION));
21232125

21242126
if (!pfrom->fInbound) {

0 commit comments

Comments
 (0)