tuweni / org.apache.tuweni.devp2p / Peer / updateENR

updateENR

abstract fun updateENR(record: EthereumNodeRecord, time: Long): Unit (source)

Update the peer's ENR.

Will only update if the seq is larger than the one associated with the peer.

Parameters

record - the ENR record associated with the peer

time - the time this endpoint information was determined, in milliseconds since the epoch