# Node Unjail

{% hint style="danger" %}
**Due to a problem with the chain during this update, the nodes may be in the following four states. You can check the status of your node with the following commands and take appropriate action:**
{% endhint %}

Enter the following command in the command line to check the status of your node:

```bash
cat ~/.titan/config/genesis.json | jq ".genesis_time"
```

Determine the status of your node based on the output:

#### Status 1️⃣ : output `2024-07-28T10:00:00.000000000Z`

> Indicates that your node did not make any updates between Aug 7 - 8.&#x20;

#### Status 2️⃣ & 3️⃣ : output `2024-08-08T08:00:00.000000000Z`

> Indicates that your node made its first update between Aug 7 - 8 and did not invoke the update script again after August 8th.

#### Status 4️⃣: ouput `2024-08-08T12:00:00.000000000Z`

> #### Your node is still jailed after completing two updates

<details>

<summary>Status 1️⃣ &#x26; 2️⃣ &#x26; 3️⃣: Failure to update nodes in time or only for the first time</summary>

**Time range**: Aug 7 - 8

* **Description**: Nodes did not perform an update during this period; or nodes performed their first update during this period and did not call the update script again.
* **Solution**:&#x20;

Follow the update guidelines and check if the current node height matches the height on the blockchain browser (<https://testnet.titan.explorers.guru>).&#x20;

If it does, you can perform the Exit Imprisonment operation.&#x20;

### Unjail the node

```
titand tx slashing unjail
```

If the error `(unsupported sign mode SIGN_MODE_TEXTUAL): unauthorized` occurs when unjailing, you need to get the latest Titan-chain code to compile and replace it. See <mark style="color:red;">"Getting the latest code and updating the node to unjail"</mark> below for details on how to do this.

</details>

<details>

<summary>Status 4️⃣: Still being jailed after completing two updates</summary>

If you complete the both updates but your node is still jailed, can unjail the node by execute the following command

### Unjail the node

```
titand tx slashing unjail
```

If the error `(unsupported sign mode SIGN_MODE_TEXTUAL): unauthorized` occurs when unjailing, you need to get the latest Titan-chain code to compile and replace it. See <mark style="color:red;">"Getting the latest code and updating the node to unjail"</mark> below for details on how to do this.\
\
\&#xNAN;*\*If you encounter any other issue during the unjailing process, please contact us for support.*&#x20;

</details>

<details>

<summary>Getting the latest code and updating the node to unjail</summary>

### 1. Clone the git repository again

First, clone the git repository of Titan chain again to ensure you have the latest code.&#x20;

```sh
git clone https://github.com/Titannet-dao/titan-chain.git
```

### 2. Complile and update Titan node

Enter the cloned directory

```sh
cd titan-chain
```

Compile the latest version of Titan node using Go

```bash
go build ./cmd/titand
```

Stop running service of Titan validator node

```
systemctl stop titan
```

Delete the old version of executable of Titan node

```
rm $(which titand)
```

Move the new version of executable to the system directory

```
mv titand /usr/local/bin/
```

Restart the titan system service

```
systemctl start titan
```

### 3. Unjail the node

```sh
titand tx slashing unjail
```

Note: If your node is not jailed, you don't need to execute this step.&#x20;

</details>
