tuweni / org.apache.tuweni.eth.crawler / CrawlerEthstatsController

CrawlerEthstatsController

class CrawlerEthstatsController : EthStatsServerController (source)

Constructors

<init>

CrawlerEthstatsController(repository: EthstatsDataRepository)

Properties

repository

val repository: EthstatsDataRepository

Functions

readBlock

Reads block information from the peer.

fun readBlock(remoteAddress: String, id: String, block: BlockStats): Unit

readDisconnect

Handles the disconnection of the peer.

fun readDisconnect(remoteAddress: String, id: String): Unit

readLatency

Reads latency from the peer to the server, in milliseconds.

fun readLatency(remoteAddress: String, id: String, latency: Long): Unit

readNodeInfo

Reads node information. This is sent upon connection from the peer.

fun readNodeInfo(remoteAddress: String, id: String, nodeInfo: NodeInfo): Unit

readNodeStats

Reads node statistics.

fun readNodeStats(remoteAddress: String, id: String, nodeStats: NodeStats): Unit

readPendingTx

Reads the number of pending transactions from the peer

fun readPendingTx(remoteAddress: String, id: String, pendingTx: Long): Unit