devp2p / 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): Bytes?

put

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

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

set

Add an ENR record to the store

open fun set(enr: Bytes): Unit

Inheritors

DefaultENRStorage

Default storage for Ethereum Node Records, backed by an in-memory hash map.

class DefaultENRStorage : ENRStorage