case class PeerManager(paramPeers: Vector[Peer], walletCreationTimeOpt: Option[Instant], queue: SourceQueue[NodeStreamMessage])(implicit ec: ExecutionContext, nodeAppConfig: NodeAppConfig, chainAppConfig: ChainAppConfig) extends StartStopAsync[PeerManager] with PeerManagerApi with P2PLogger with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PeerManager
- Serializable
- Product
- Equals
- P2PLogger
- BitcoinSLogger
- PeerManagerApi
- StartStopAsync
- StartStop
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new PeerManager(paramPeers: Vector[Peer], walletCreationTimeOpt: Option[Instant], queue: SourceQueue[NodeStreamMessage])(implicit ec: ExecutionContext, nodeAppConfig: NodeAppConfig, chainAppConfig: ChainAppConfig)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildP2PMessageHandlerSink(initState: NodeState): Sink[NodeStreamMessage, Future[NodeState]]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def connectPeer(peer: Peer): Future[Unit]
- Definition Classes
- PeerManager → PeerManagerApi
- def connectedPeerCount: Int
- def disconnectPeer(peer: Peer): Future[Unit]
- Definition Classes
- PeerManager → PeerManagerApi
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getPeerData(peer: Peer): Option[PersistentPeerData]
- def gossipGetHeadersMessage(hashes: Vector[DoubleSha256DigestBE]): Unit
Gossips the org.bitcoins.core.p2p.GetHeadersMessage to all of our peers to attempt ot get the best block headers
Gossips the org.bitcoins.core.p2p.GetHeadersMessage to all of our peers to attempt ot get the best block headers
- Definition Classes
- PeerManager → PeerManagerApi
- def gossipMessage(msg: NetworkPayload, excludedPeerOpt: Option[Peer]): Unit
Gossips the given message to all peers except the excluded peer.
Gossips the given message to all peers except the excluded peer. If None given as excluded peer, gossip message to all peers
- Definition Classes
- PeerManager → PeerManagerApi
- def isConnected(peer: Peer): Future[Boolean]
- Definition Classes
- PeerManager → PeerManagerApi
- def isDisconnected(peer: Peer): Future[Boolean]
- Definition Classes
- PeerManager → PeerManagerApi
- def isInitialized(peer: Peer): Future[Boolean]
- Definition Classes
- PeerManager → PeerManagerApi
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logger: Logger
- Definition Classes
- BitcoinSLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val paramPeers: Vector[Peer]
- def peerWithServicesDataMap: Map[PeerWithServices, PersistentPeerData]
- def peers: Set[Peer]
Peers we are currently connected too and have completed the version/verack handshake with
Peers we are currently connected too and have completed the version/verack handshake with
- Definition Classes
- PeerManager → PeerManagerApi
- def peersWithServices: Set[PeerWithServices]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val queue: SourceQueue[NodeStreamMessage]
- def sendToRandomPeer(payload: NetworkPayload): Unit
- Definition Classes
- PeerManager → PeerManagerApi
- def start(): Future[PeerManager]
- Definition Classes
- PeerManager → StartStop
- def startFilterSync(chainApi: ChainApi, fofhs: FilterOrFilterHeaderSync): Future[Option[FilterOrFilterHeaderSync]]
Starts a filter header or filter sync is necesssary.
Starts a filter header or filter sync is necesssary. Returns None if no sync is started
- def stop(): Future[PeerManager]
- Definition Classes
- PeerManager → StartStop
- def sync(syncPeerOpt: Option[Peer]): Future[Unit]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val walletCreationTimeOpt: Option[Instant]