p2p: small lint

This commit is contained in:
Ethan Buchman 2018-04-28 21:17:28 -04:00
parent fae94a44a2
commit c195772de1

View File

@ -58,13 +58,9 @@ func (info NodeInfo) Validate() error {
// ensure ListenAddr is good // ensure ListenAddr is good
_, err := NewNetAddressString(IDAddressString(info.ID, info.ListenAddr)) _, err := NewNetAddressString(IDAddressString(info.ID, info.ListenAddr))
if err != nil {
return err return err
} }
return nil
}
// CompatibleWith checks if two NodeInfo are compatible with eachother. // CompatibleWith checks if two NodeInfo are compatible with eachother.
// CONTRACT: two nodes are compatible if the major version matches and network match // CONTRACT: two nodes are compatible if the major version matches and network match
// and they have at least one channel in common. // and they have at least one channel in common.