devp2p-eth / org.apache.tuweni.devp2p.eth / StatusMessage

StatusMessage

data class StatusMessage (source)

Constructors

<init>

StatusMessage(protocolVersion: Int, networkID: UInt256, totalDifficulty: UInt256, bestHash: Hash, genesisHash: Hash, forkHash: Bytes?, forkBlock: Long?)

Properties

bestHash

val bestHash: Hash

forkBlock

val forkBlock: Long?

forkHash

val forkHash: Bytes?

genesisHash

val genesisHash: Hash

networkID

val networkID: UInt256

protocolVersion

val protocolVersion: Int

totalDifficulty

val totalDifficulty: UInt256

Functions

toBytes

fun toBytes(): Bytes

Companion Object Functions

read

fun read(payload: Bytes): StatusMessage