3.3.4. When mijin Catapult(v.2) Finalization Stops¶
- creation-day:
Nov. 27, 2026
- update date:
Nov. 27, 2026
3.3.4.1. Applies to¶
heightin/chain/infoincreases, butlatestFinalizedBlock.heightdoes not changeIt happened after all voting nodes were stopped at the same time, or restarted one after another in a short time
3.3.4.2. Cause¶
/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.3.3.4.3. Check¶
/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
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-nodeorpeer-node). REST and MongoDB are not stopped.Moves
voting_status.dattovoting_status.dat.bak-<time>to clear the “sent” record, and then starts the node.Does not change the configuration files.
--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
/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>
Warning
enableRevoteOnBoot to true in the configuration file ( config-finalization.properties ). The node would then vote again in the same round on every restart.