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

### 1. 从本地钱包来检查区块高度：

![](/files/-LdOyqW4ckD033KWwgfU)

区块高度与区块浏览器是否一致 \
<https://explorer.win.win/>

![](/files/-LdOyrnV0ed4X7kzU0id)

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

点击 **工具>并列列表**\
查看连接的节点是否有版本v3.2.0.6以下的版本，如果有，请右键单击它们并选择“**Ban Node for 1 year**(禁用此节点1年)”：

![](/files/-Ldm7ivu6xhEo2stPXpQ)

* 完成上个步骤后，你需要删除以下 .dat文件：**peers.dat、banlist.dat、mnpayments.dat**\
  可在WINS文件夹中找到这些文件\
  如果是Windows用户，该文件夹位于 ***%appdata%/twins***\
  ***-***&#x5982;果是Linux用户，该文件夹位于 ***/yourusername/.twins*** \
  -如果是Mac用户，该文件夹位于 ***/Users/YourUserName/Library/Application Support/twins***

![](/files/-LdOywO2KDDaW0drD8gZ)

* 然后重新启动钱包，并重新同步。

### 2. 检查VPS上的masternode钱包（远程钱包）区块高度：

对于使用Nodemaster脚本的用户：

*twins-cli -conf=/etc/masternodes/twins\_nX.conf getblockcount*

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

*./twins-cli getblockcount*

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

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

若不是使用nodemaster脚本，则该文件位于/yourusername/.twins中，停止并重新启动twins守护程序的命令为： \
\
./twins-cli stop \
./twinsd –daemon<br>

### 另一种方法检查是否在正确的区块链上

在本地钱包的"*工具*">"*调试控制台*" 输入\
**getblockhash \<any\_high\_block\_number>**\
\
以及\
\
在VPS的MN钱包（远程钱包）输入\
\&#xNAN;**./twins-cli -conf=/etc/masternodes/twins\_nX.conf getblockhash \<same\_high\_block\_number>**\
\
然后检查区块高度是否与TWINS区块浏览器一致。


---

# 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.win.win/twins/zhong-wen/twins-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.
