net: Send post-verack handshake messages at most once

Github-Pull: #20146
Rebased-From: fa1f6f237d
This commit is contained in:
MarcoFalke
2020-10-14 10:31:42 +02:00
committed by fanquake
parent bdf15d0d5d
commit 6113b547f4

View File

@@ -2119,6 +2119,8 @@ bool ProcessMessage(CNode* pfrom, const std::string& msg_type, CDataStream& vRec
if (msg_type == NetMsgType::VERACK)
{
if (pfrom->fSuccessfullyConnected) return true;
pfrom->SetRecvVersion(std::min(pfrom->nVersion.load(), PROTOCOL_VERSION));
if (!pfrom->fInbound) {