Skip to content

peer: Convert address strings to net.Addr.#3630

Merged
davecgh merged 2 commits intodecred:masterfrom
davecgh:peer_use_stdlib_net_addr
Mar 3, 2026
Merged

peer: Convert address strings to net.Addr.#3630
davecgh merged 2 commits intodecred:masterfrom
davecgh:peer_use_stdlib_net_addr

Conversation

@davecgh
Copy link
Copy Markdown
Member

@davecgh davecgh commented Feb 28, 2026

This requires #3626 and #3629.

This modifies NewOutboundPeer to accept a net.Addr instead of a string so it is consistent with the inbound constructor and more flexible.

Since both constructors now accept a net.Addr, it also updates the internal field the tracks the remote address to store the net.Addr instead of a string.

@davecgh davecgh added this to the 2.2.0 milestone Feb 28, 2026
@davecgh davecgh force-pushed the peer_use_stdlib_net_addr branch from b978ee3 to ff82b6a Compare February 28, 2026 03:26
@davecgh davecgh force-pushed the peer_use_stdlib_net_addr branch 3 times, most recently from b401252 to 5089236 Compare March 3, 2026 16:10
davecgh added 2 commits March 3, 2026 11:58
This does some minor cleanup on the peer tests to use more recent
formatting and consistently use remote addresses.
This modifies NewOutboundPeer to accept a net.Addr instead of a string
so it is consistent with the inbound constructor and more flexible.

Since both constructors now accept a net.Addr, it also updates the
internal field the tracks the remote address to store the net.Addr
instead of a string.
@davecgh davecgh force-pushed the peer_use_stdlib_net_addr branch from 5089236 to 7fa4800 Compare March 3, 2026 17:59
@davecgh davecgh merged commit 7fa4800 into decred:master Mar 3, 2026
33 checks passed
@davecgh davecgh deleted the peer_use_stdlib_net_addr branch March 3, 2026 20:28
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