# Blockchain health check

**1. Check the block count from the local wallet:**

![](https://544866030-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhjE__7ridRT_WrghwY%2F-Li8VBYUCE8lFO1f9cuW%2F-Li8gPx6b0RPbpeGeaoK%2FENBlhealth1.png?alt=media\&token=7e2751a0-9057-4413-8c9f-1fc138939752)

Compare it to the one of the blockchain explorer @ <https://explorer.fix.network/>

![](https://544866030-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhjE__7ridRT_WrghwY%2F-Li8VBYUCE8lFO1f9cuW%2F-Li8gSV_E-RIayhYB2BN%2FENBlhealth2.png?alt=media\&token=a963149a-96b8-47c9-a5e9-0e11040c94c0)

**The current block must match.**\
If they don’t match, here’s what to do:

* Check the version of your wallet at Tools > Information and make sure it is the latest one available at <https://github.com/NewCapital/FIX-Core/releases>.
* Next, close the wallet and delete the following .dat files: **peers.dat**, **banlist.dat**, **mnpayments.dat**.&#x20;
  * If you are using Windows you will find the files in the "%appdata%/FIX" folder.
  * If you are using Linux you will find the files in the /YourUserName/.fix folder
  * If you are using a Mac, you will find these files in the /Users/YourUserName/Library/Application Support/FIX folder

![](https://544866030-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhjE__7ridRT_WrghwY%2F-Li8VBYUCE8lFO1f9cuW%2F-Li8gWDEq3lv4dTlJvPK%2FENBlhealth3.png?alt=media\&token=1cb770c9-499d-451b-8950-c859426bdfe7)

* Delete the directories **blocks** and **chainstate**.
* Then do a full resync by restarting the wallet.

\-  The wallet will find new peer connections. Go to Tools > Peers list and see if you have any peers running with an older version. If you do, right-click on them and choose "Ban Node for 1 year":

![](https://544866030-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LhjE__7ridRT_WrghwY%2F-Li8VBYUCE8lFO1f9cuW%2F-Li8gZiuavYSmyKXLpbj%2FENBlhealth4.png?alt=media\&token=f2f9ab29-abe3-463d-aca1-e82daa22b2b5)

**2. Check the blockcount on your masternode wallets on your VPS (remote wallet):**

For those using the Nodemaster script:

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

For the normal script:

*./fix-cli getblockcount*

And compare it to what explorer says. If they match you are good. If they don’t, you’ll need to do a full resync of your MN with the FIX blockchain as follows:

If you are using the Nodemaster script:&#x20;

A. Delete the blockchain folders called “blocks” and “chainstate”. Located in /var/lib/masternodes/fixX if you are running the nodemaster script (X is the number of your masternode)

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

Then do a full a resync by stopping and starting the fix daemon:

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

If you are not running the nodemaster script, the files that must be deleted are located in the /YourUserName/.fix folder and the command to stop and restart the fix daemon should be:

./fix-cli stop \
./fixd *or* ./fixd -daemon

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

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

Then see if the hash matches with what the FIX explorer says.
