devp2p / org.apache.tuweni.devp2p.v5.storage / DefaultENRStorage

DefaultENRStorage

class DefaultENRStorage : ENRStorage (source)

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

Constructors

<init>

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

DefaultENRStorage()

Functions

find

Find a stored node record

fun find(nodeId: Bytes): Bytes?

put

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

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