devp2p / org.apache.tuweni.devp2p / NeighborsPacket

NeighborsPacket

class NeighborsPacket : Packet (source)

Properties

nodes

val nodes: List<Node>

Functions

encodeTo

fun encodeTo(dst: ByteBuffer): ByteBuffer

Companion Object Functions

create

fun create(keyPair: KeyPair, now: Long, nodes: List<Node>): NeighborsPacket

createRequired

fun createRequired(keyPair: KeyPair, now: Long, nodes: List<Node>): List<NeighborsPacket>

decode

fun decode(payload: Bytes, hash: Bytes32, publicKey: PublicKey, signature: Signature): NeighborsPacket