Commit 700e3ec0 authored by Petar Radovic's avatar Petar Radovic

some missing comments in handshake

parent 505c26ad
...@@ -24,8 +24,12 @@ const ( ...@@ -24,8 +24,12 @@ const (
// ErrNetworkIDIncompatible should be returned by handshake handlers if // ErrNetworkIDIncompatible should be returned by handshake handlers if
// response from the other peer does not have valid networkID. // response from the other peer does not have valid networkID.
var ErrNetworkIDIncompatible = errors.New("incompatible networkID") var ErrNetworkIDIncompatible = errors.New("incompatible networkID")
// ErrHandshakeDuplicate should be returned by handshake handlers if
// the handshake response has been received by an already processed peer.
var ErrHandshakeDuplicate = errors.New("duplicate handshake") var ErrHandshakeDuplicate = errors.New("duplicate handshake")
// PeerFinder has the information if the peer already exists in swarm.
type PeerFinder interface { type PeerFinder interface {
Exists(overlay swarm.Address) (found bool) Exists(overlay swarm.Address) (found bool)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment