This tool:
- queries legacy Hornet nodes for their ledger state
- computes a Blake2b-256 hash of the sorted [addr,balance] tuples
- generates a global snapshot file in CSV format to consume for legacy nodes
- generates a genesis snapshot for Chrysalis Phase 2 nodes containing already burned/migrated funds
Migrated funds are allocated in the genesis snapshot under UTXO IDs with an empty transaction hash and up to index 126. When the output index goes over 126 it is wrapped to zero and the transaction ID's last 2 bytes (holds a little endian encoded uint16) is incremented on each wrap around.
Run the tool with --help
to get a list of configurable CLI params.