fix build and test

This commit is contained in:
Ethan Buchman
2018-04-28 15:39:09 -04:00
parent 0450e35d67
commit 64569b15e5
7 changed files with 22 additions and 10 deletions

View File

@ -623,7 +623,7 @@ func (a *addrBook) addAddress(addr, src *p2p.NetAddress) error {
}
// TODO: we should track ourAddrs by ID and by IP:PORT and refuse both.
if _, ok := a.ourAddrs[addr.String()]; ok {
return ErrAddrBookSelf
return ErrAddrBookSelf{addr}
}
ka := a.addrLookup[addr.ID]