# Syncing

### Normal Operation

* A well functioning leader tx. orderer consistently shares its state with the followers in a concurrent manner, who then synchronize their states to match that of the leader. This synchronization process ensures consistency across the network.

### Failover Operation

When the leader becomes unresponsive or fails, the following process ensures continuity and proper synchronization within the system:

1. **Leader Recovery and Request**:
   * Upon recovery, the leader makes a request to all other members of the cluster to check if any of them have received the "build block" request from the rollup.
2. **No Build Block Request Received**:
   * If no other peer has received the "build block" request from the rollup, the leader resumes its leadership role.
3. **Build Block Request Received by Follower**:
   * If another peer has received the build block request, the recovered members of the cluster will synchronize its block height with that of the new leader, as the leadership role has been transferred to it.

This process ensures that the leader can either continue its role seamlessly or synchronize appropriately with the follower to maintain the integrity and continuity of the system.

This mechanism ensures that the network remains robust and consistent, aligning the states of all nodes with the selected leader's state, whether it includes the latest transactions and commitments or necessitates a rollback to maintain network integrity.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.theradius.xyz/overview/internal-secure-block-building-sbb/tx.-orderer-cluster/liveness/syncing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
