How do I check if my coin forked?

algorithm X11
source branch 0.14

updated December 13, 2022, 4:02 pm

Your coin forked when you have two different block hashes for the same block height.

This means that you have two different copies of your blockchain.

Check with two wallets if the block hash matches for the same block height, with the following steps.

Open your wallet.

Go to Tools -> Debug console.
This is the console where you execute RPC commands.

Show the current block height with the following RPC command:

getblockcount

Show the block hash with the following RPC command:

getblockhash height

Replace the text “height” with the number in the output of the command “getblockcount”.

Example:

getblockhash 1337