Skip to content

[p2p] extract validating logic from NewNetAddressStringWithOptionalID #2722

@melekes

Description

@melekes

We should extract validating logic from

func NewNetAddressStringWithOptionalID(addr string) (*NetAddress, error) {
and put it in netAddr#Valid(), which will be called

(1) in NewNetAddressStringWithOptionalID
(2) upon receiving a pexAddrsMessage msg in pex reactor.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions