setLeader

fun setLeader(newLeader: NodeId?)

Update leader to newLeader.