Skip to content

server: Cleanup external address discovery.#3640

Open
davecgh wants to merge 1 commit intodecred:masterfrom
davecgh:server_external_addr_discovery
Open

server: Cleanup external address discovery.#3640
davecgh wants to merge 1 commit intodecred:masterfrom
davecgh:server_external_addr_discovery

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Mar 6, 2026

This requires #3638.

This current code that handles the external server address discovery is rather difficult to follow because it is poorly named and interspersed with other code that is not related.

This refactors the code to make it better separated and easier to follow. It also switches the main data structure that limits the number of addresses to use an LRU instead.

While refactoring this, I noticed there is room for improvement in terms of the logic as well. However, in order to keep the changes easier to review for correctness, this does not contain any notable overall logic changes and limits the changes to refactors and cleanup.

@davecgh davecgh added this to the 2.2.0 milestone Mar 6, 2026
@davecgh davecgh force-pushed the server_external_addr_discovery branch from 221a417 to 1bb946e Compare March 6, 2026 18:31
@davecgh davecgh force-pushed the server_external_addr_discovery branch from 1bb946e to f7d3721 Compare March 17, 2026 06:10
@davecgh davecgh force-pushed the server_external_addr_discovery branch from f7d3721 to 10a916d Compare April 7, 2026 04:20
This current code that handles the external server address discovery is
rather difficult to follow because it is poorly named and interspersed
with other code that is not related.

This refactors the code to make it better separated and easier to
follow.  It also switches the main data structure that limits the number
of addresses to use an LRU instead.

While refactoring this, I noticed there is room for improvement in terms
of the logic as well.  However, in order to keep the changes easier to
review for correctness, this does not contain any notable overall logic
changes and limits the changes to refactors and cleanup.
@davecgh davecgh force-pushed the server_external_addr_discovery branch from 10a916d to 6db68f9 Compare April 11, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant