mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge d4abaf8c9d into merged_master (Bitcoin PR bitcoin/bitcoin#29608)
This commit is contained in:
commit
089c458038
1 changed files with 1 additions and 0 deletions
|
|
@ -824,6 +824,7 @@ std::vector<CAddress> AddrManImpl::GetAddr_(size_t max_addresses, size_t max_pct
|
|||
// gather a list of random nodes, skipping those of low quality
|
||||
const auto now{Now<NodeSeconds>()};
|
||||
std::vector<CAddress> addresses;
|
||||
addresses.reserve(nNodes);
|
||||
for (unsigned int n = 0; n < vRandom.size(); n++) {
|
||||
if (addresses.size() >= nNodes)
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue