tuweni / org.apache.tuweni.ethclient / PeerStatusEthSynchronizer

PeerStatusEthSynchronizer

class PeerStatusEthSynchronizer : Synchronizer (source)

Synchronizer responsible for pulling blocks until such time the highest known block is met, or close enough.

Listens to new status messages, and syncs backwards from them.

Constructors

<init>

Synchronizer responsible for pulling blocks until such time the highest known block is met, or close enough.

PeerStatusEthSynchronizer(executor: ExecutorService = Executors.newSingleThreadExecutor(), coroutineContext: CoroutineContext = executor.asCoroutineDispatcher(), repository: BlockchainRepository, client: EthRequestsManager, peerRepository: EthereumPeerRepository, adapter: WireConnectionPeerRepositoryAdapter)

Properties

listenerId

var listenerId: String?

Functions

start

fun start(): Unit

stop

fun stop(): Unit