Merge dd981b5e84 into merged_master (Bitcoin PR bitcoin/bitcoin#22618)

This commit is contained in:
James Dorfman 2023-04-06 20:54:28 +00:00
commit 815f4d545d
4 changed files with 9 additions and 3 deletions

View file

@ -3813,7 +3813,9 @@ void PeerManagerImpl::ProcessMessage(CNode& pfrom, const std::string& msg_type,
return;
}
SetupAddressRelay(pfrom, *peer);
// Since this must be an inbound connection, SetupAddressRelay will
// never fail.
Assume(SetupAddressRelay(pfrom, *peer));
// Only send one GetAddr response per connection to reduce resource waste
// and discourage addr stamping of INV announcements.