tuweni / org.apache.tuweni.devp2p.v5 / ENRStorage

ENRStorage

interface ENRStorage (source)

Storage of node records

Functions

find

Find a stored node record

abstract fun find(nodeId: Bytes): EthereumNodeRecord?

put

Store an ENR record associated with a nodeId in the store.

abstract fun put(nodeId: Bytes, enr: EthereumNodeRecord): Unit

set

Add an ENR record to the store

open fun set(enr: EthereumNodeRecord): Unit