PeerRegistry

org.sigilaris.node.gossip.PeerRegistry
trait PeerRegistry

Registry of peers known to the local gossip node.

Attributes

Source
Contracts.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

Attributes

Returns

the set of peers that are direct neighbors of the local peer

Source
Contracts.scala

Attributes

Returns

the set of all known peer identities in the network

Source
Contracts.scala

Attributes

Returns

the identity of the local peer

Source
Contracts.scala

Concrete methods

def isDirectNeighbor(peer: PeerIdentity): Boolean

Checks whether the given peer is a direct neighbor.

Checks whether the given peer is a direct neighbor.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if the peer is a direct neighbor

Source
Contracts.scala
def isKnownPeer(peer: PeerIdentity): Boolean

Checks whether the given peer is a known peer.

Checks whether the given peer is a known peer.

Value parameters

peer

the peer identity to check

Attributes

Returns

true if the peer is known

Source
Contracts.scala