2.2.6.5. mijin Catapult(v.2) How to update a node’s voting rights file

This chapter describes the expiration of the node voting rights (voting key) on a mijin Catapult(v.2) node on AWS, and where to find the update procedure.
The voting rights of a node expire after approximately 487 days to 8 years, depending on the block generation interval.

Warning

When the voting rights file expires, the finalization block stops.
Therefore, if you are using finalize blocks, you must update them.
creation-day:

January 26, 2023

update date:

November 27, 2026

2.2.6.5.1. Expiration of voting rights

The expiration of a single voting key file can be calculated with the following formula.
Since votingSetGrouping (160) and maxVotingKeyLifetime (26280) are fixed values, the expiration varies with blockGenerationTargetTime (block generation interval).
(votingSetGrouping * maxVotingKeyLifetime * blockGenerationTargetTime) / (60 * 60 * 24)

# blockGenerationTargetTime 10s
(160 * 26280 * 10) / 86400 = 約 487 日
# blockGenerationTargetTime 15s
(160 * 26280 * 15) / 86400 = 約 730 日
# blockGenerationTargetTime 30s
(160 * 26280 * 30) / 86400 = 約 1460 日(約 4 年)
# blockGenerationTargetTime 60s
(160 * 26280 * 60) / 86400 = 約 2920 日(約 8 年)

Warning

Note that blockGenerationTargetTime (block generation interval) is only a guideline: even if you set it to 15s, for example, blocks are not generated at exact intervals. If the actual interval is shorter than the setting, the voting key expires correspondingly earlier.

You can check the number of days remaining until expiration with the REST endpoint /mijin/votingkeys (1.0.3.11 or later; see mijin Catapult(v.2) How to check status ).

2.2.6.5.2. Voting Rights File Update

Renewing the voting rights is not complete just by creating the voting key file for the next period. The voting key in the created file must be registered on the chain with a VotingKeyLink transaction.
For the procedure, see Renewing the Voting Key.

Note

With the procedure previously described on this page (which only creates a voting key file with votingkey update ), the voting key is not registered on the chain, so finalization stops after the key expires.
If you have already created private_key_tree2.dat with that procedure, in Step.4 of Renewing the Voting Key only copy the files to the working directory ( cp -r $VK ~/vk-work ) and do not run votingkey update. The copied private_key_tree2.dat is registered in Step.5. Running votingkey update would create private_key_tree3.dat and leave a gap between the periods.