mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
Unconditionally return when compact block status == READ_STATUS_FAILED
Github-Pull: #27743
Rebased-From: d972695797
This commit is contained in:
parent
cdd3de08e3
commit
b8ad3220a9
1 changed files with 1 additions and 1 deletions
|
@ -4364,11 +4364,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
|
||||||
std::vector<CInv> vInv(1);
|
std::vector<CInv> vInv(1);
|
||||||
vInv[0] = CInv(MSG_BLOCK | GetFetchFlags(*peer), blockhash);
|
vInv[0] = CInv(MSG_BLOCK | GetFetchFlags(*peer), blockhash);
|
||||||
m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::GETDATA, vInv));
|
m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::GETDATA, vInv));
|
||||||
return;
|
|
||||||
} else {
|
} else {
|
||||||
// Give up for this peer and wait for other peer(s)
|
// Give up for this peer and wait for other peer(s)
|
||||||
RemoveBlockRequest(pindex->GetBlockHash(), pfrom.GetId());
|
RemoveBlockRequest(pindex->GetBlockHash(), pfrom.GetId());
|
||||||
}
|
}
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
BlockTransactionsRequest req;
|
BlockTransactionsRequest req;
|
||||||
|
|
Loading…
Add table
Reference in a new issue