PeerRegistry
org.sigilaris.node.gossip.PeerRegistry
trait PeerRegistry
Registry of peers known to the local gossip node.
Attributes
- Source
- Contracts.scala
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class StaticPeerRegistry
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
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
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
In this article