# 监禁解除

{% hint style="danger" %}
**由于此次更新过程中链出现了问题，导致节点可能处于以下四种状态。您可以通过以下命令检查自己的节点状态，并采取相应的措施：**
{% endhint %}

在命令行中输入以下命令，查看您的节点状态：

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

根据显示的结果来判断您的节点状态：

#### 状态 1️⃣ :显示为 `2024-07-28T10:00:00.000000000Z`

> 表示您的节点在8月7日 - 8月8日之间未进行任何更新。

#### 状态 2️⃣ & 3️⃣ ：显示为 `2024-08-08T08:00:00.000000000Z`

> 表示您的节点在8月7日 - 8月8日之间进行了第一次更新，8月8日之后未再次调用更新脚本。

#### 状态 4️⃣：显示为 `2024-08-08T12:00:00.000000000Z`

> #### 您两次更新后仍然被监禁

<details>

<summary>状态1️⃣ &#x26; 2️⃣ &#x26; 3️⃣: 未及时更新节点或仅首次更新节点</summary>

**时间范围：** 8月7日 - 8月8日

• **描述：** 在此期间未进行更新的节点；或者在此期间进行了第一次更新，没有再次调用更新脚本的节点。

• **解决步骤：**&#x20;

按照更新指南操作，检查当前节点高度与区块链浏览器([https://testnet.titan.explorers.guru](https://testnet.titan.explorers.guru/))上的高度是否一致。

若一致，可以进行退出监禁状态操作。

### 解除节点监禁

```sh
titand tx slashing unjail
```

如果退出监禁时出现`(unsupported sign mode SIGN_MODE_TEXTUAL): unauthorized`的错误，需要获取最新的Titan-chain代码进行编译替换。具体流程详见 下&#x65B9;*<mark style="color:red;">“获取最新代码并更新节点，解除监禁报错”</mark>*。

</details>

<details>

<summary>状态4️⃣: 两次更新后仍然被监禁</summary>

如果您更新了，但是仍然处于监禁状态，可以通过

### 解除节点监禁

```sh
titand tx slashing unjail
```

如果退出监禁时出现`(unsupported sign mode SIGN_MODE_TEXTUAL): unauthorized`的错误，需要获取最新的Titan-chain代码进行编译替换。具体流程详见  *<mark style="color:red;">“获取最新代码并更新节点，解除监禁报错”</mark>*。\
\
\&#xNAN;*\*如果解除监禁过程中出现其他问题，请联系官方支持以寻求帮助。*

</details>

<details>

<summary><strong>获取最新代码</strong>并更新节点<strong>，解除监禁报错</strong></summary>

### 1.重新克隆Titan链的Git仓库

首先，重新克隆Titan链的Git仓库，以确保您拥有最新的代码：

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

### 2.编译并更新Titan节点

进入克隆的目录：

```sh
cd titan-chain
```

使用Go编译最新的Titan节点：

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

停止当前运行的Titan验证者节点服务：

```
systemctl stop titan
```

删除旧版本的Titan节点可执行文件：

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

将编译后的新版本Titan节点可执行文件移动到系统路径：

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

重新启动Titan节点服务：

```
systemctl start titan
```

### 3.解除节点监禁

```sh
titand tx slashing unjail
```

*注意： 如果您的验证节点没有被监禁，则不需要执行最后一步。*

</details>


---

# 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://titannet.gitbook.io/titan-network-cn/qu-kuai-lian-ce-shi/yan-zheng-jie-dian-validator/jian-jin-jie-chu.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.
