DhtNode
constructor(socket: DatagramTransport, nodeId: Sha1Hash, scope: CoroutineScope, routingTable: RoutingTable = RoutingTable(nodeId, K_BUCKET), storage: DhtStorage = DhtStorage(), tokens: DhtTokens = DhtTokens(), clock: () -> Long = { 0L }, enforceNodeId: Boolean = false, readOnly: Boolean = false, random: Random = Random.Default)
Parameters
clock
supplies epoch-seconds for storage expiry and token rotation. The core is clockless, so the platform passes one in ({ System.currentTimeMillis()/1000 }).