Skip to main content

Migration check

⚠️ This step is optional, can be executed by any third party interested in checking fairness of the migration

Assuming the data loading process has been successfully completed by Horizen, anyone can check that the migrated data correctly reflects the old chains state by following the steps described in this section.

How it works:

We have already described in previous sections the concept of dumps, migration data, and cumulative hash.

The verification process will require to take a new dump, recalculating the hash locally with the same algorithm, and compare it with the one stored in the vault smart contracts.

Instructions:

Prerequisites:

The following software is needed:

  1. Fully synched ZEND Mainchain node (version 6) :

  2. Fully synched EON Chain node (version 1.5) with dump support enabled:

    • Download latest EON release node
    • Add the following fragment in the config file to enable state dump support (important: the fragment must be added BEFORE starting to synch the chain):
    evmStateDump {
    enabled = true
    }
    • Start the node and have it fully synched with the old mainchain

Instructions:

  1. Execute the dumps with the procedure already described here

  2. Download the Github repository horizen-migration-check and follow the README instructions to recalculate the hash from the dumps and compare it with the on-chain one.