Unconditionally return when compact block status == READ_STATUS_FAILED

Github-Pull: #27743
Rebased-From: d97269579769effbe6eec2303ea0cc3e396d3e0d
This commit is contained in:
Greg Sanders 2023-05-24 13:59:49 -04:00 committed by fanquake
parent cdd3de08e3
commit b8ad3220a9
No known key found for this signature in database
GPG Key ID: 2EEB9F5CC09526C1

View File

@ -4364,11 +4364,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
std::vector<CInv> vInv(1);
vInv[0] = CInv(MSG_BLOCK | GetFetchFlags(*peer), blockhash);
m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::GETDATA, vInv));
return;
} else {
// Give up for this peer and wait for other peer(s)
RemoveBlockRequest(pindex->GetBlockHash(), pfrom.GetId());
}
return;
}
BlockTransactionsRequest req;