leader

abstract val leader: StateFlow<NodeId?>

The NodeId of the node this node currently believes to be the leader, or null if no leader is known (e.g. during an election).

Informational; propose automatically forwards to the leader — callers do not need to redirect manually.