Skip to content

Commit

Permalink
node: Optimise getNetLocalAddresses slightly
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed May 21, 2024
1 parent c904421 commit 76ca37e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/node/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ class NodeImpl : public Node
{
std::vector<CNetAddr> ret;
LOCK(g_maplocalhost_mutex);
ret.reserve(mapLocalHost.size());
for (const std::pair<const CNetAddr, LocalServiceInfo> &item : mapLocalHost) {
ret.emplace_back(item.first);
}
Expand Down

0 comments on commit 76ca37e

Please sign in to comment.