net: Send post-verack handshake messages at most once

Github-Pull: #20146
Rebased-From: fa1f6f237d02265af616129402fa2b8a3019dda5
This commit is contained in:
MarcoFalke 2020-10-14 10:31:42 +02:00 committed by fanquake
parent bdf15d0d5d
commit 6113b547f4
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

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) {