> For the complete documentation index, see [llms.txt](https://achilles1.gitbook.io/workspace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://achilles1.gitbook.io/workspace/master.md).

# TWINS: Blockchain health check

This Document explains how to verify you are on the right blockchain and the remedition techniques in case you are not.

**1. Check the blockcount from the local wallet perspective:**

![](https://cdn-images-1.medium.com/max/800/0*wtWCbnJZnONFJaXC)

Compare it to the one of the blockchain explorer @ [https://explorer.win.win](https://explorer.win.win/)​![](https://cdn-images-1.medium.com/max/800/0*F9EdcHNf_YsiZDYo)

They must match.

If they don’t match here’s what to do:

\- Go to Tools > Peer list and see if you have peers running version v3.2.0.4 or lower. If you do, ban them as follows:![](https://cdn-images-1.medium.com/max/800/0*Pr1Q6x64tw5XrK-M)

* Once you’ve done that and to avoid them from coming back, you’ll need to do delete the following .dat files peers.dat, banlist.dat, mnpayments.dat in the %appdata%/twins folder:

![](https://cdn-images-1.medium.com/max/800/0*_xl4os1ryYUfy1KB)

* Then do a full resynch by closing and restarting the wallet.

**2. Check the blockcount from the remote wallet perspective:**

For those using the nodemaster script:

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

For normal script:

*./twins-cli getblockcount*

And compare it to what explorer says, if they match your are good. If they don’t you’ll need to to a full resynch of your MN with the TWINS network/blockchain as follows:

A. Delete the blockchain folders called “blocks” and “chainstate”. Located in /var/lib/masternodes/twinsX if you are running the nodemaster script

B. Delete the .dat banlist.dat, mnpayment.dat, peers.dat located in the same folder.

Then do a full a resynch by stopping and starting the twins daemon:

systemctl daemon-reload \
systemctl enable twins\_nX \
systemctl restart twins\_nX

If you are not running the nodemaster script, the command to stop and restart the twins daemon should be:

./twins-cli stop \
twinsd –daemon

**PS: Another way to verify you are on the right chain is to run**

“getblockhash \<any\_high\_block\_number>” from the local wallet in debug console and “twins-cli -conf=/etc/masternodes/twins\_nX.conf getblockhash \<same\_high\_block\_number>” from the MN.

Then see if they match with what the TWINS explorer says.
