Skip to content

Commit e434320

Browse files
committed
Merge bitcoin/bitcoin#27743: p2p: Unconditionally return when compact block status == READ_STATUS_FAILED
d972695 Unconditionally return when compact block status == READ_STATUS_FAILED (Greg Sanders) Pull request description: Fixes bitcoin/bitcoin#27626 (comment) which would have resulted in wasted bandwidth every once in a while. ACKs for top commit: Sjors: utACK d972695 mzumsande: ACK d972695 Tree-SHA512: 2483cae03093fc61b36279bbc455829822258703ae608ff2797a20449410b12bfe8d40de63c02fc79ed4ef4d91b34c63281b71b81a1c691cab9647b65761586f
2 parents a13f374 + d972695 commit e434320

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/net_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4365,11 +4365,11 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
43654365
std::vector<CInv> vInv(1);
43664366
vInv[0] = CInv(MSG_BLOCK | GetFetchFlags(*peer), blockhash);
43674367
m_connman.PushMessage(&pfrom, msgMaker.Make(NetMsgType::GETDATA, vInv));
4368-
return;
43694368
} else {
43704369
// Give up for this peer and wait for other peer(s)
43714370
RemoveBlockRequest(pindex->GetBlockHash(), pfrom.GetId());
43724371
}
4372+
return;
43734373
}
43744374

43754375
BlockTransactionsRequest req;

0 commit comments

Comments
 (0)