Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Check node address is valid #565

Merged
merged 8 commits into from Jul 4, 2023
Merged

Conversation

kehiy
Copy link
Contributor

@kehiy kehiy commented Jul 1, 2023

Description

This PR checks the validity of addresses inside the network's config.go and returns error if any of the addresses is invalid.

Related issue

Fixing #524

@codecov
Copy link

codecov bot commented Jul 1, 2023

Codecov Report

Merging #565 (3c41416) into main (b939232) will increase coverage by 0.20%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #565      +/-   ##
==========================================
+ Coverage   83.30%   83.51%   +0.20%     
==========================================
  Files         154      154              
  Lines        7243     7255      +12     
==========================================
+ Hits         6034     6059      +25     
+ Misses        928      916      -12     
+ Partials      281      280       -1     

network/config.go Outdated Show resolved Hide resolved
network/config.go Outdated Show resolved Hide resolved
network/config_test.go Outdated Show resolved Hide resolved
network/config_test.go Outdated Show resolved Hide resolved
@kehiy kehiy requested a review from b00f July 2, 2023 08:55
network/config.go Outdated Show resolved Hide resolved
network/config.go Outdated Show resolved Hide resolved
network/config.go Outdated Show resolved Hide resolved
@kehiy kehiy requested a review from b00f July 3, 2023 17:12
network/config.go Show resolved Hide resolved
@kehiy kehiy requested a review from b00f July 4, 2023 10:16
network/config_test.go Outdated Show resolved Hide resolved
@kehiy kehiy requested a review from b00f July 4, 2023 15:47
@b00f
Copy link
Collaborator

b00f commented Jul 4, 2023

Awesome @kehiy

@b00f b00f merged commit 199cd8f into pactus-project:main Jul 4, 2023
12 checks passed
@kehiy kehiy deleted the checkNodeAddress branch July 4, 2023 16:11
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.

None yet

2 participants