isOnline
fun NodeInfo.isOnline(nowEpochSeconds: Int, threshold: Duration = DEFAULT_ONLINE_THRESHOLD): Boolean(source)
Returns true if the node was last heard within threshold of nowEpochSeconds.
Return
true if the node is considered online; false if stale or never heard
Since
0.1.0
Parameters
nowEpochSeconds
current epoch time in seconds (e.g., Clock.System.now().epochSeconds.toInt())
threshold
how recently the node must have been heard to be considered online