Skip to content

peer: Remove wire net address references.#3631

Merged
davecgh merged 1 commit intodecred:masterfrom
davecgh:peer_remove_wire_netaddr_refs
Mar 3, 2026
Merged

peer: Remove wire net address references.#3631
davecgh merged 1 commit intodecred:masterfrom
davecgh:peer_remove_wire_netaddr_refs

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Feb 28, 2026

This requires #3626, #3629, and #3630.

Now that the rest of the code has been converted to no longer make use of the net address associated with the peer, the only remaining use is for the initial handshake.

Given that the handshake is only a one time event that happens during the initialization phase, there is no longer a reason to keep a reference around.

With that in mind, this moves the logic that creates the version 1 network address required during the handshake to the handshake path itself and removes all other references.

@davecgh davecgh added this to the 2.2.0 milestone Feb 28, 2026
@davecgh davecgh force-pushed the peer_remove_wire_netaddr_refs branch 4 times, most recently from 38f204e to e40f718 Compare March 3, 2026 17:59
Now that the rest of the code has been converted to no longer make use
of the net address associated with the peer, the only remaining use is
for the initial handshake.

Given that the handshake is only a one time event that happens during
the initialization phase, there is no longer a reason to keep a
reference around.

With that in mind, this moves the logic that creates the version 1
network address required during the handshake to the handshake path
itself and removes all other references.
@davecgh davecgh force-pushed the peer_remove_wire_netaddr_refs branch from e40f718 to 5cd942a Compare March 3, 2026 20:29
@davecgh davecgh merged commit 5cd942a into decred:master Mar 3, 2026
33 checks passed
@davecgh davecgh deleted the peer_remove_wire_netaddr_refs branch March 3, 2026 20:47
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.

2 participants