Skip to content

Conversation

@zmanian
Copy link
Contributor

@zmanian zmanian commented Nov 9, 2018

Here is one a approach to the peers without IDs in the address book.

@zmanian zmanian changed the base branch from master to develop November 9, 2018 21:33
@jackzampolin jackzampolin mentioned this pull request Nov 9, 2018
6 tasks
}{
{"127.0.0.1:8080", true, true, false},
{"ya.ru:80", true, false, true},
{"123fdc2a9bce5f2ef01e907a1d6a16548ee5a245@ya.ru:80", true, false, true},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add these as new vectors, instead of removing the old vector? (Unless the old test didn't make sense for some reason)

Copy link
Contributor

@melekes melekes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚬 📺

// For IPv4 these are either a 0 or all bits set address. For IPv6 a zero
// address or one that matches the RFC3849 documentation address format.
func (na *NetAddress) Valid() bool {
if na.Local() == false {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if na.Local() == false {
if !na.Local() {

@codecov-io
Copy link

codecov-io commented Nov 9, 2018

Codecov Report

Merging #2796 into develop will increase coverage by 0.08%.
The diff coverage is 50%.

@@             Coverage Diff             @@
##           develop    #2796      +/-   ##
===========================================
+ Coverage     62.3%   62.38%   +0.08%     
===========================================
  Files          212      212              
  Lines        17210    17215       +5     
===========================================
+ Hits         10722    10739      +17     
+ Misses        5588     5577      -11     
+ Partials       900      899       -1
Impacted Files Coverage Δ
p2p/netaddress.go 71.85% <50%> (-0.54%) ⬇️
privval/ipc_server.go 67.92% <0%> (-1.89%) ⬇️
evidence/wire.go 100% <0%> (ø) ⬆️
consensus/reactor.go 68.06% <0%> (+1.74%) ⬆️

melekes and others added 2 commits November 9, 2018 14:00
Co-Authored-By: zmanian <zaki@manian.org>
Co-Authored-By: zmanian <zaki@manian.org>
@jaekwon
Copy link
Contributor

jaekwon commented Nov 9, 2018

See: #2797

@jaekwon jaekwon closed this Nov 9, 2018
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.

6 participants