3.3.4. When mijin Catapult(v.2) Finalization Stops

This section describes how to fix the situation where blocks are advancing but the finalized height no longer changes.
creation-day:

Nov. 27, 2026

update date:

Nov. 27, 2026

3.3.4.1. Applies to

  • height in /chain/info increases, but latestFinalizedBlock.height does not change

  • It happened after all voting nodes were stopped at the same time, or restarted one after another in a short time

On a chain with only one voting node, this can happen every time that node is restarted.
Finalization also stops when the voting key expires. In that case, see Renewing the Voting Key.

3.3.4.2. Cause

A node records in a file ( /mnt/mijin/blocks/data/voting_status.dat ) that it has sent its vote. The votes themselves, however, exist only in the memory of each node.
If all voting nodes stop at the same time, the votes are lost, but the files still say “sent”. After starting up, the nodes trust this record and do not resend their votes, so finalization no longer advances.
This does not happen when nodes are restarted one at a time, because the other nodes hold the votes. Always restart or upgrade nodes one at a time.

3.3.4.3. Check

First, confirm that all voting nodes are running. If only one node is stopped, finalization advances once that node is started.
You can check the block height and finalized height of each node with /mijin/peersinfo (see mijin Catapult(v.2) How to check status ).
$ curl -s http://localhost:3000/mijin/peersinfo | jq -r '.[] | [.host, .height, .latestFinalizedBlock.height] | @tsv'
peer1.mijin.internal    1520    1232
peer2.mijin.internal    1520    1232
api1.mijin.internal     1520    1232
If all nodes are running and the block height keeps increasing but the finalized height does not change, fix it with the following procedure.

3.3.4.4. How to fix (1.0.3.11 or later)

Run the following command on each voting node. You may run it on the nodes in parallel. It takes about 6 minutes per node.

$ sudo mijin-init-tools recover-finalization

The command does the following.

  • Watches for about 6 minutes to confirm that finalization is not advancing. If it advances, the command exits without doing anything.

  • Stops only the node container ( api-node or peer-node ). REST and MongoDB are not stopped.

  • Moves voting_status.dat to voting_status.dat.bak-<time> to clear the “sent” record, and then starts the node.

  • Does not change the configuration files.

If you have already confirmed that finalization has stopped, you can skip the 6-minute check by adding --no-wait. Do not add it on nodes where you are not sure whether finalization has stopped.
$ sudo mijin-init-tools recover-finalization --no-wait
Once it has been run on most voting nodes (70% of the voting weight), the finalized height advances within a few minutes. Check it with /mijin/peersinfo.

3.3.4.5. How to fix (1.0.3.9 or earlier)

On nodes without mijin-init-tools, do the following on each voting node. You may do it one node at a time or in parallel.

$ cd ~/mijin-catapult-package/package/<api または peer>/catapult
$ docker compose stop <api-node または peer-node>
$ sudo cp -p /mnt/mijin/blocks/data/voting_status.dat /mnt/mijin/blocks/data/voting_status.dat.bak
# 10 バイトのうち、最後の 2 バイト(投票を送ったかどうか)を 0 に戻す
$ printf '\000\000' | sudo dd of=/mnt/mijin/blocks/data/voting_status.dat bs=1 seek=8 conv=notrunc
$ docker compose start <api-node または peer-node>
Once this has been done on all voting nodes, the finalized height advances within a few minutes.

Warning

Do not fix this by setting enableRevoteOnBoot to true in the configuration file ( config-finalization.properties ). The node would then vote again in the same round on every restart.