# 检查是否在正确的区块链上

## 1. 从本地钱包来检查区块高度： <a href="#id-1-cong-ben-di-qian-bao-lai-jian-cha-qu-kuai-gao-du" id="id-1-cong-ben-di-qian-bao-lai-jian-cha-qu-kuai-gao-du"></a>

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LYvndWBvrmJxi5m4Vyp%2F-LdlaE5dr6-iLHZUX78z%2F-LdlaLR3sRRzN3W7DpBW%2F1.png?alt=media\&token=98b01ada-8f7c-4f10-9c0d-889e7dda355d)

区块高度与区块浏览器是否一致 <https://explorer.fix.network/>​

​

**区块高度必须一致**，如果它们不一致，请执行以下操作：

* 点击 工具 > 信息 查看你的钱包版本，并确保它是<https://github.com/NewCapital/FIX-Core/releases> 提供的最新版本。
* 完成上个步骤后，你需要删除以下 .dat文件：**peers.dat、banlist.dat、mnpayments.dat** 可在FIX文件夹中找到这些文件
  * 如果是Windows用户，该文件夹位于： **`%appdata%/FIX`**
  * 如果是Linux用户，该文件夹位于： **`/yourusername/.fix`**
  * 果是Mac用户，该文件夹位&#x4E8E;**：`/Users/YourUserName/Library/Application Support/FIX`**

![](https://blobscdn.gitbook.com/v0/b/gitbook-28427.appspot.com/o/assets%2F-LYvndWBvrmJxi5m4Vyp%2F-LdlaE5dr6-iLHZUX78z%2F-LdlcB-FFZy_X5R0uJVH%2F4.png?alt=media\&token=bd767d9b-6564-4efc-b000-7e248263ed51)

* 删除**blocks**和**chainstate**文件夹
* 然后重新启动钱包，并重新同步。

钱包将找到新的结点连接，转到 工具 > 并列列表，查看是否有任何运行旧版本的对结点；如果有，请右键单击它们并选择“禁用节点1年”：

## 2. 检查VPS上的masternode钱包（远程钱包）区块高度： <a href="#id-2-jian-cha-vps-shang-de-masternode-qian-bao-yuan-cheng-qian-bao-qu-kuai-gao-du" id="id-2-jian-cha-vps-shang-de-masternode-qian-bao-yuan-cheng-qian-bao-qu-kuai-gao-du"></a>

对于使用Nodemaster脚本的用户：

*`fix-cli -conf=/etc/masternodes/fix_nX.conf getblockcount`*

对于使用普通脚本的用户：

*`./fix-cli getblockcount`*

并与区块浏览器的高度进行比较，如果一致即没问题，若不一致，你的MN钱包（远程钱包）需要重新同步，如下所示：

如果你使用的是Nodemaster脚本： A. 删除FIX文件夹下名为“**blocks**”和“**chainstate**”的区块链文件夹，该文件夹于 /var/lib/masternodes/fixX 中 （X需替换成你的masternode编号） B.删除位于同一文件夹中的 .dat文件：**peers.dat、banlist.dat、mnpayments.dat**。 然后停止并重新启动fix守护进程来重新同步： `systemctl daemon-reload`&#x20;

`systemctl enable fix_nX`

`systemctl restart fix_nX`

若不是使用nodemaster脚本，则该文件位&#x4E8E;*`/yourusername/.fix`*&#x4E2D;，停止并重新启动fix守护程序的命令为： `./fix-cli stop`&#x20;

`./fixd –daemon`

## 另一种方法检查是否在正确的区块链上 <a href="#ling-yi-zhong-fang-fa-jian-cha-shi-fou-zai-zheng-que-de-qu-kuai-lian-shang" id="ling-yi-zhong-fang-fa-jian-cha-shi-fou-zai-zheng-que-de-qu-kuai-lian-shang"></a>

在本地钱包的"*工具*">"*调试控制台*" 输入 **`getblockhash <any_high_block_number>`**&#x20;

以及&#x20;

在VPS的MN钱包（远程钱包）输入 **`./fix-cli -conf=/etc/masternodes/fix_nX.conf getblockhash <same_high_block_number>`** 然后检查区块高度是否与FIX区块浏览器一致。


---

# 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.fix.network/zhong-wen/fix-qian-bao/jian-cha-shi-fou-zai-zheng-que-de-qu-kuai-lian-shang.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.
